function search_files_attachments_menu in Search Files 7.2
Same name and namespace in other branches
- 6.2 search_files_attachments.module \search_files_attachments_menu()
Implements hook_menu().
File
- ./
search_files_attachments.module, line 11 - Used to index files in attachments
Code
function search_files_attachments_menu() {
$items = array();
$items['admin/config/search/search_files/attachments'] = array(
'title' => 'Attachments',
'description' => 'Configure Search Files Attachments Module',
'page callback' => 'search_files_attachments_dashboard',
'access arguments' => array(
'administer search_files configuration',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 1,
);
$items['admin/config/search/search_files/attachments/dashboard'] = array(
'title' => 'Dashboard',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/search/search_files/attachments/update_index'] = array(
'title' => 'Update index',
'description' => 'Manually runs hook update_index',
'page callback' => 'search_files_attachments_update_index',
'page arguments' => array(
'back' => 'admin/config/search/search_files/attachments',
),
'access arguments' => array(
'administer search_files configuration',
),
'type' => MENU_CALLBACK,
);
$items['admin/config/search/search_files/attachments/settings'] = array(
'title' => 'Settings',
'description' => 'Change settings for Search Files Attachments Module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'search_files_attachments_settings_form',
),
'access arguments' => array(
'administer search_files configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
return $items;
}