You are here

public function ViewsConditionalHandler::option_definition in Views Conditional 7

Set default values for form elements.

Overrides views_handler_field::option_definition

File

includes/views/handlers/views_conditional_handler.inc, line 28
Handles conditionals in Views. IF xxx THEN yyy...

Class

ViewsConditionalHandler
@file Handles conditionals in Views. IF xxx THEN yyy...

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['label']['default'] = NULL;
  $options['if'] = array(
    'default' => '',
  );
  $options['condition'] = array(
    'default' => '',
  );
  $options['equalto'] = array(
    'default' => '',
  );
  $options['then'] = array(
    'default' => '',
  );
  $options['or'] = array(
    'default' => '',
  );
  $options['strip_tags'] = array(
    'default' => FALSE,
  );
  return $options;
}