You are here

function sarnia_menu in Sarnia 7

Implements hook_menu().

File

./sarnia.module, line 12

Code

function sarnia_menu() {
  $items = array();
  $items['admin/config/search/search_api/server/%search_api_server/sarnia'] = array(
    'title' => 'Sarnia',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sarnia_entity_manage_form',
      5,
    ),
    'access callback' => '_sarnia_entity_manage_form_access',
    'access arguments' => array(
      5,
    ),
    'file' => 'sarnia.entities.inc',
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE | MENU_CONTEXT_PAGE,
  );
  $items['admin/config/search/search_api/server/%search_api_server/sarnia/manage'] = array(
    'title' => 'Manage entity',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/search/search_api/server/%search_api_server/sarnia/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sarnia_entity_delete_form',
      5,
    ),
    'access callback' => '_sarnia_entity_manage_form_access',
    'access arguments' => array(
      5,
    ),
    'file' => 'sarnia.entities.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/search/search_api/server/%search_api_server/sarnia/cache'] = array(
    'title' => 'Refresh server field cache',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sarnia_entity_cache_form',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'sarnia.entities.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/search/search_api/server/%search_api_server/sarnia/properties'] = array(
    'title' => 'Solr properties',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sarnia_entity_properties_form',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'sarnia.entities.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/search/search_api/server/%search_api_server/sarnia/schema'] = array(
    'title' => 'Solr Schema',
    'page callback' => 'sarnia_schema_page',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'sarnia.rules.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['sarnia/%sarnia_entity_type/%sarnia'] = array(
    'title' => 'A Sarnia Entity',
    'load arguments' => array(
      1,
      2,
    ),
    'page callback' => 'sarnia_entity_page',
    'page arguments' => array(
      1,
      2,
    ),
    'access arguments' => array(
      'access sarnia entity pages',
    ),
  );
  return $items;
}