You are here

function search_files_menu in Search Files 6.2

Same name and namespace in other branches
  1. 5 search_files.module \search_files_menu()
  2. 7.2 search_files.module \search_files_menu()

Implementation of hook_menu().

Return value

$items = array of menu items

File

./search_files.module, line 13
Used to index files in attachments and directories

Code

function search_files_menu() {
  $items = array();
  $items['admin/settings/search_files'] = array(
    'title' => 'Search Files',
    'description' => 'Manage searching for files in attachments and directories',
    'page callback' => 'search_files_overview',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/search_files/helpers'] = array(
    'title' => 'Helpers',
    'description' => 'List Search Files Helper Applications',
    'page callback' => 'search_files_helper_list',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 0,
  );
  $items['admin/settings/search_files/helpers/list'] = array(
    'title' => 'List',
    'description' => 'List Search Files Helper Applications',
    'page callback' => 'search_files_helper_list',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/settings/search_files/helpers/add'] = array(
    'title' => 'Add',
    'description' => 'Add Search Files Helper Application',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search_files_helper_add_form',
    ),
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/settings/search_files/helpers/autodetect'] = array(
    'title' => 'Autodetect',
    'description' => 'Autodetect Search Files Helper Application',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search_files_helper_autodetect',
    ),
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/settings/search_files/helpers/edit'] = array(
    'title' => 'Edit',
    'description' => 'Edit Search Files Helper Application',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search_files_helper_edit',
    ),
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/search_files/helpers/delete'] = array(
    'title' => 'Delete',
    'description' => 'Delete Search Files Helper Application',
    'page callback' => 'search_files_helper_confirm_delete',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}