You are here

function content_handler_field::options_submit in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6.2 includes/views/handlers/content_handler_field.inc \content_handler_field::options_submit()

Make sure some value is stored as a label.

Don't use t(), since Views' views_handler_field already has $this->options['label'] marked as a translatable field.

See also

http://drupal.org/node/285470

File

includes/views/handlers/content_handler_field.inc, line 102
The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Class

content_handler_field
@file The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Code

function options_submit($form, &$form_state) {
  switch ($form_state['values']['options']['label_type']) {
    case 'none':
      $form_state['values']['options']['label'] = '';
      break;
    case 'widget':
      $form_state['values']['options']['label'] = $this->content_field['widget']['label'];
      break;
  }
}