You are here

function tvi_validate_handler in Taxonomy Views Integrator 7

Same name and namespace in other branches
  1. 6 includes/tvi.admin.inc \tvi_validate_handler()

Validate the TVI administration form submission.

If the view and the display do not line up, throw an error.

Parameters

array $form: The form array.

array $form_state: The form state array.

1 string reference to 'tvi_validate_handler'
tvi_taxonomy_admin_form in includes/tvi.admin.inc
The main TVI administration form.

File

includes/tvi.admin.inc, line 221
Administration functions for the tvi module.

Code

function tvi_validate_handler($form, &$form_state) {
  $values = $form_state['values']['tvi'];
  if (!empty($values['display'])) {
    list(, $display_name) = explode(':', $values['display']);
    $form_state['values']['tvi']['display'] = $display_name;
  }
}