function amp_menu in Accelerated Mobile Pages (AMP) 7
Implements hook_menu().
File
- ./
amp.module, line 30
Code
function amp_menu() {
$items = array();
$items['admin/config/amp/library/test'] = array(
'title' => 'Test the AMP Library',
'description' => 'Test the AMP Library',
'page callback' => 'amp_library_test',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/content/amp'] = array(
'title' => 'AMP Configuration',
'description' => 'Configure the AMP module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'amp_admin_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'amp.admin.inc',
);
$items['admin/config/content/amp/config'] = array(
'title' => 'AMP Configuration',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'amp.admin.inc',
);
$items['admin/config/content/amp/metadata'] = array(
'title' => 'AMP Metadata',
'description' => 'Configure AMP Metadata',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'amp_admin_metadata_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'file' => 'amp.admin.inc',
);
return $items;
}