Posted by rooey on August 24, 2007 at 4:48pm
| Download | Size | md5 hash |
|---|---|---|
| dapi-5.x-1.0.tar.gz | 7.96 KB | f6f1e0e38924c5e9935005fdb8eabe6b |
| dapi-5.x-1.0.zip | 8.52 KB | 314c65c938528f12fa38398c8223f547 |
Last updated: December 24, 2010 - 22:43
* 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;
}