You are here

function humanstxt_menu in Humans.txt 6

Same name and namespace in other branches
  1. 7 humanstxt.module \humanstxt_menu()

Implements hook_menu().

File

./humanstxt.module, line 18
humanstxt module file.

Code

function humanstxt_menu() {
  $items['humans.txt'] = array(
    'page callback' => 'humanstxt_file',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/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;
}