function feed_path_publisher_menu in Feed Path Publisher 5
Same name and namespace in other branches
- 6 feed_path_publisher.module \feed_path_publisher_menu()
- 7 feed_path_publisher.module \feed_path_publisher_menu()
File
- ./
feed_path_publisher.module, line 3
Code
function feed_path_publisher_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/content/feed_path_publisher',
'title' => t('Feed path publisher'),
'callback' => 'feed_path_publisher_list',
'access' => user_access('administer site configuration'),
);
$items[] = array(
'path' => 'admin/content/feed_path_publisher/list',
'title' => t('List'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items[] = array(
'path' => 'admin/content/feed_path_publisher/add',
'title' => t('Add'),
'type' => MENU_LOCAL_TASK,
'callback' => 'feed_path_publisher_add',
);
}
else {
_feed_path_publisher_add_feeds($_GET['q']);
if (arg(2) == 'feed_path_publisher' && is_numeric(arg(3)) && arg(1) == 'content' && arg(0) == 'admin') {
$items[] = array(
'path' => 'admin/content/feed_path_publisher/' . arg(3) . '/edit',
'callback' => 'feed_path_publisher_edit',
'callback arguments' => array(
arg(3),
),
);
}
}
return $items;
}