You are here

function forena_query_menu in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena_query/forena_query.module \forena_query_menu()
  2. 7.3 forena_query.module \forena_query_menu()
  3. 7.4 forena_query.module \forena_query_menu()

Implementation of hook_menu

File

./forena_query.module, line 11
Provides the ability to create saved queries and to test sql data blocks.

Code

function forena_query_menu() {
  $items = array();
  $items['admin/structure/forena/data/add'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Create new SQL Query',
    'access arguments' => array(
      'build forena sql blocks',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'forena_query_create_block_form',
    ),
    'file' => 'forena_query.inc',
  );
  $items['admin/structure/forena/data/%/edit'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'SQL Editor',
    'access callback' => 'forena_query_editor_access',
    'access arguments' => array(
      4,
      'create',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'forena_query_editor',
      4,
    ),
    'file' => 'forena_query.inc',
  );
  $items['admin/structure/forena/data/%/delete'] = array(
    'type' => MENU_CALLBACK,
    'title' => 'Delete/Revert Custom Data Query',
    'access callback' => 'forena_query_editor_access',
    'access arguments' => array(
      4,
      'delete',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'forena_query_delete_form',
      4,
    ),
    'file' => 'forena_query.inc',
  );
  $items['forena-query/table_autocomplete'] = array(
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'build forena sql blocks',
    ),
    'page callback' => 'forena_query_autocomplete',
    'file' => 'forena_query.inc',
  );
  $items['forena-query/table_autocomplete_simple'] = array(
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'build forena sql blocks',
    ),
    'page callback' => 'forena_query_autocomplete_simple',
    'file' => 'forena_query.inc',
  );
  return $items;
}