function feeds_menu_local_tasks_alter in Feeds 7.2
Implements hook_menu_local_tasks_alter().
Adds "Import" link as local action on content overview page.
Related topics
File
- ./
feeds.module, line 1013 - Feeds - basic API functions and hook implementations.
Code
function feeds_menu_local_tasks_alter(&$data, $router_item, $root_path) {
if ($root_path == 'admin/content') {
$data['actions']['output'][] = array(
'#theme' => 'menu_local_task',
'#link' => array(
'title' => t('Import'),
'href' => 'import',
'localized_options' => array(
'attributes' => array(
'title' => t('Import'),
),
),
),
'#access' => feeds_page_access(),
// Add weight so it appears after the local action "Add content".
'#weight' => 1,
);
}
}