You are here

function search_files_attachments_menu in Search Files 6.2

Same name and namespace in other branches
  1. 7.2 search_files_attachments.module \search_files_attachments_menu()

Implementation of hook_menu().

File

./search_files_attachments.module, line 47
Used to index files in attachments

Code

function search_files_attachments_menu() {
  $items = array();
  $items['admin/settings/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/settings/search_files/attachments/dashboard'] = array(
    'title' => 'Dashboard',
    'description' => 'Dashboard for Search Files in Attachments Module',
    'page callback' => 'search_files_attachments_dashboard',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/settings/search_files/attachments/update_index'] = array(
    'title' => 'Update index',
    'description' => 'manually run hook update_index',
    'page callback' => 'search_files_attachments_update_index',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/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;
}