function views_process_check_options

cis7 views.module views_process_check_options($element, &$form_state)
cle7 views.module views_process_check_options($element, &$form_state)
elmsmedia7 views.module views_process_check_options($element, &$form_state)
icor7 views.module views_process_check_options($element, &$form_state)
meedjum_blog7 views.module views_process_check_options($element, &$form_state)
mooc7 views.module views_process_check_options($element, &$form_state)

#process callback to see if we need to check_plain() the options.

Since FAPI is inconsistent, the #options are sanitized for you in all cases _except_ checkboxes. We have form elements that are sometimes 'select' and sometimes 'checkboxes', so we need decide late in the form rendering cycle if the options need to be sanitized before they're rendered. This callback inspects the type, and if it's still 'checkboxes', does the sanitation.

File

sites/all/modules/ulmus/views/views.module, line 2372
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_process_check_options($element, &$form_state) {
  if ($element['#type'] == 'checkboxes' || $element['#type'] == 'checkbox') {
    $element['#options'] = array_map('check_plain', $element['#options']);
  }
  return $element;
}