function addthis_menu in AddThis 5.2
Same name and namespace in other branches
- 6.3 addthis.module \addthis_menu()
- 6.2 addthis.module \addthis_menu()
- 7.4 addthis.module \addthis_menu()
- 7.2 addthis.module \addthis_menu()
Implementation of hook_menu().
File
- ./
addthis.module, line 38 - Stand alone module file to handle AddThis button integration
Code
function addthis_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/addthis',
'title' => t('AddThis'),
'description' => t('Set username and customize look and feel for <a href="http://www.addthis.com/">AddThis</a> button.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'addthis_admin_settings',
),
'access' => user_access('administer addthis'),
);
}
return $items;
}