function discussthis_menu in Discuss This! 5
Same name and namespace in other branches
- 6 discussthis.module \discussthis_menu()
- 7.2 discussthis.module \discussthis_menu()
- 7 discussthis.module \discussthis_menu()
hook_menu implementation
Parameters
may_cache whether the menu items might be cached:
Return value
array list of menu items
File
- ./
discussthis.module, line 38
Code
function discussthis_menu($may_cache) {
$items = array();
if (!$may_cache) {
$items[] = array(
'path' => 'admin/settings/discussthis',
'title' => t('Discuss This'),
'description' => t('Configure discuss this module defaults, including what node types and what forums to link to.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'discussthis_admin',
'access' => user_access('administer discuss this'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'discussthis/new',
'callback' => 'drupal_get_form',
'callback arguments' => array(
'discussthis_new',
arg(2),
),
'access' => user_access('initiate discuss this topics'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'discussthis/autocomplete',
'title' => t('Autocomplete forum topics'),
'callback' => 'discussthis_autocomplete',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
}
return $items;
}