You are here

function sarnia_schema_page in Sarnia 7

Faux menu router, since this admin page is nested too deeply in the menu.

1 string reference to 'sarnia_schema_page'
sarnia_menu in ./sarnia.module
Implements hook_menu().

File

./sarnia.rules.inc, line 6

Code

function sarnia_schema_page($search_api_server, $behavior = NULL) {
  if (in_array($behavior, array(
    'display',
    'filter',
    'fulltext',
    'sort',
  ))) {
    return drupal_get_form('sarnia_schema_rule_form', $search_api_server, $behavior);
  }
  else {
    return sarnia_schema_rule_list($search_api_server);
  }
}