querypath.admin.inc in QueryPath 6
Same filename and directory in other branches
Administrative tools for the QueryPath library.
File
querypath.admin.incView source
<?php
/**
* Administrative tools for the QueryPath library.
*
* @file
*/
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
Name | Description |
---|---|
querypath_admin_form | Administrative tools for the QueryPath library. |