function feeds_youtube_menu in Feeds: YouTube Parser 7.3
Implements hook_menu().
File
- ./
feeds_youtube.module, line 40 - Adds a YouTube feed processor to the Feeds module.
Code
function feeds_youtube_menu() {
$items = array();
$items['admin/structure/feeds/default'] = array(
'title' => 'Feeds importers',
'description' => 'Configure one or more Feeds importers to aggregate RSS and Atom feeds, import CSV files or more.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1,
);
$items['admin/structure/feeds/google-api-oauth'] = array(
'title' => 'Google API Access',
'description' => 'Google API Access configuration page',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'feeds_youtube_settings_from',
),
'access arguments' => array(
'feeds_access',
),
'file' => 'includes/admin.inc',
'weight' => 2,
);
$items['admin/structure/feeds/google-api-authentication'] = array(
'title' => 'Authenticate Google API Account',
'description' => 'Google API Access configuration page',
'type' => MENU_LOCAL_TASK,
'page callback' => 'feeds_youtube_authenticate',
'access arguments' => array(
'feeds_access',
),
'file' => 'includes/admin.inc',
'weight' => 3,
);
$items['admin/structure/feeds/revoke-google-api-authentication'] = array(
'title' => 'Revoke Authenticate Google API Account',
'description' => 'Revoke Google API Access',
'type' => MENU_CALLBACK,
'page callback' => 'feeds_youtube_revoke_authentication',
'access arguments' => array(
'feeds_access',
),
'file' => 'includes/admin.inc',
'weight' => 3,
);
return $items;
}