Releases for Drupal API + Extensions
dapi 5.x-1.0
rooey - August 24, 2007 - 16:48
| Download | Size | md5 hash |
|---|---|---|
| dapi-5.x-1.0.tar.gz | 7.96 KB | f6f1e0e38924c5e9935005fdb8eabe6b |
Official release from CVS tag: DRUPAL-5--1-0
Last updated: August 24, 2007 - 16:50
* added dapi_loadicons hook.
// $splitview determines whether to categorise icons or not - set to TRUE or FALSE (defaults to false if omitted)
// $module is an optional parameter - used to specify a specific group of icons to show. defaults to NULL (all icons)
$page_content .= dapi_loadicons($module, $splitview);* added dapi_seticons hook.
function mymodule_dapi_seticons() {
$icons = array();
// attributes may include 'hidden' to prevent icons being displayed by other modules calling the dapi_loadicons hook.
$icons[] = array(
'group' => t('Document Publishing'),
'attributes' => array(),
'module' => 'mymodule',
'path' => 'mymodule/myapplication',
'icon' => drupal_get_path('module', 'mymodule').'/image/myicon.png',
'title' => t('My Application'),
'access' => user_access('access mymodule'),
'description' => t('Tool-tip text for My Application'),
);
return $icons;
}