You are here

querypath.admin.inc in QueryPath 7.2

Same filename and directory in other branches
  1. 6 querypath.admin.inc
  2. 7.3 querypath.admin.inc

Administrative tools for the QueryPath library.

File

querypath.admin.inc
View source
<?php

/**
 * Administrative tools for the QueryPath library.
 *
 * @file
 */

/**
 * Implements hook_admin_form().
 */
function querypath_admin_form($context) {
  $form['qp'] = array(
    '#type' => 'fieldset',
    '#title' => t('Settings'),
    '#description' => t('The QueryPath library is not loaded by default because QueryPath itself is not included in the module.
      First install QueryPath according to the directions in the README.txt file, then return to this page and enable QueryPath.'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['qp']['querypath_enabled'] = array(
    '#type' => 'checkbox',
    '#title' => t('Load the QueryPath Library'),
    '#description' => t('Check this box to enable QueryPath. You should have installed the QueryPath library already.'),
    '#default_value' => variable_get('querypath_enabled', 0),
    '#return_value' => 1,
  );
  return drupal_settings($form);
}

Functions

Namesort descending Description
querypath_admin_form Implements hook_admin_form().