You are here

function search_files_menu in Search Files 7.2

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

Implements hook_menu().

File

./search_files.module, line 29
Organizes and provides helper functions for extracting text from files.

Code

function search_files_menu() {
  $items = array();
  $items['admin/config/search/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/config/search/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/config/search/search_files/helpers/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/config/search/search_files/helpers/add'] = array(
    'title' => 'Add',
    'description' => 'Add Search Files helper application',
    'page callback' => 'search_files_edit',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/search/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/config/search/search_files/helpers/edit'] = array(
    'title' => 'Edit',
    'description' => 'Edit Search Files helper application',
    'page callback' => 'search_files_edit',
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/search/search_files/helpers/delete'] = array(
    'title' => 'Delete',
    'description' => 'Delete Search Files helper application',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'search_files_helper_confirm_delete_form',
    ),
    'access arguments' => array(
      'administer search_files configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}