function views_handler_field_serialized::options_validate in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 handlers/views_handler_field_serialized.inc \views_handler_field_serialized::options_validate()
Validate the options form.
Overrides views_handler::options_validate
File
- handlers/
views_handler_field_serialized.inc, line 41
Class
- views_handler_field_serialized
- Field handler to show data of serialized fields.
Code
function options_validate(&$form, &$form_state) {
// Require a key if the format is key.
if ($form_state['values']['options']['format'] == 'key' && $form_state['values']['options']['key'] == '') {
form_error($form['key'], t('You have to enter a key if you want to display a key of the data.'));
}
}