You are here

function adstxt_menu in AdsTxt 7

Implements hook_menu().

File

./adstxt.module, line 34

Code

function adstxt_menu() {
  $items['ads.txt'] = array(
    'page callback' => 'adstxt_callback',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/system/adstxt'] = array(
    'title' => 'AdsTxt',
    'description' => 'Manage your ads.txt file.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'adstxt_admin_settings',
    ),
    'access arguments' => array(
      'administer ads.txt',
    ),
    'file' => 'adstxt.admin.inc',
  );
  return $items;
}