function accessibility_admin_filter_form

cis7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)
cle7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)
elmsmedia7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)
icor7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)
meedjum_blog7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)
mooc7 accessibility.admin.inc accessibility_admin_filter_form($form, $form_state)

Form to filter accessibility tests.

1 string reference to 'accessibility_admin_filter_form'
accessibility_admin_existing_tests in sites/all/modules/ulmus/accessibility/accessibility.admin.inc
List existing accessibility tests. @todo - add a filter form

File

sites/all/modules/ulmus/accessibility/accessibility.admin.inc, line 250

Code

function accessibility_admin_filter_form($form, $form_state) {
  $form = array();

  $filter = (isset($_SESSION['accessibility_admin_filter'])) ? $_SESSION['accessibility_admin_filter'] : array();

  $form['filters'] = array(
    '#type' => 'fieldset',
  );

  $form['filters']['name'] = array(
    '#title' => t('Test name contains'),
    '#type' => 'textfield',
    '#default_value' => (isset($filter['name']) ? $filter['name'] : array()),
  );

  $form['filters']['severity'] = array(
    '#title' => t('Severity level'),
    '#type' => 'checkboxes',
    '#options' => array(
      ACCESSIBILITY_TEST_SEVERE => t('Severe'),
      ACCESSIBILITY_TEST_MODERATE => t('Moderate'),
      ACCESSIBILITY_TEST_SUGGESTION => t('Suggestion'),
    ),
    '#default_value' => (isset($filter['severity']) ? $filter['severity'] : array()),
  );

  $form['filters']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Search'),
  );

  $form['filters']['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset'),
  );

  return $form;
}