You are here

function apdqc_admin_devel_admin_settings_form in Asynchronous Prefetch Database Query Cache 7

Add the apdqc_verbose_devel_output setting to the devel_admin_settings form.

1 call to apdqc_admin_devel_admin_settings_form()
apdqc_form_devel_admin_settings_alter in ./apdqc.module
Implements hook_form_FORM_ID_alter().

File

./apdqc.admin.inc, line 27
Admin page callbacks for the apdqc module.

Code

function apdqc_admin_devel_admin_settings_form(&$form, $form_state) {
  apdqc_admin_set_message_if_needed();
  $apdqc_form = apdqc_admin_get_settings();
  if (isset($apdqc_form['apdqc_verbose_devel_output'])) {
    $form['queries']['settings']['apdqc_verbose_devel_output'] = $apdqc_form['apdqc_verbose_devel_output'];
    $form['queries']['settings']['apdqc_verbose_devel_output']['#weight'] = -1;
  }
}