function humanstxt_menu in Humans.txt 7
Same name and namespace in other branches
- 6 humanstxt.module \humanstxt_menu()
Implements hook_menu().
File
- ./
humanstxt.module, line 23 - humanstxt module file.
Code
function humanstxt_menu() {
$items['humans.txt'] = array(
'page callback' => 'humanstxt_file',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['admin/config/search/humanstxt'] = array(
'title' => 'Humanstxt',
'description' => 'Manage your humans.txt file.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'humanstxt_admin_settings',
),
'access arguments' => array(
'administer humans.txt',
),
'file' => 'humanstxt.admin.inc',
);
return $items;
}