function freelinking_menu in Freelinking 5
Same name and namespace in other branches
- 6.3 freelinking.module \freelinking_menu()
- 6 freelinking.module \freelinking_menu()
- 6.2 freelinking.module \freelinking_menu()
- 7.3 freelinking.module \freelinking_menu()
File
- ./
freelinking.module, line 10
Code
function freelinking_menu($may_cache) {
global $user;
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'freelinking',
'title' => t('Freelinks'),
'access' => user_access('access freelinking list'),
'callback' => 'freelinking_page',
);
$items[] = array(
'path' => 'admin/settings/freelinking',
'title' => t('Freelinking'),
'description' => t('Configure wiki-style freelinking settings for node content.'),
'access' => user_access('administer freelinking'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'freelinking_settings',
),
);
}
return $items;
}