You are here

function views_ifempty_handler_field::option_definition in Views If Empty 6

Same name and namespace in other branches
  1. 7 includes/views/handlers/views_ifempty_handler_field.inc \views_ifempty_handler_field::option_definition()

Set default values for form elements.

File

handlers/views_ifempty_handler_field.inc, line 13
Views field handler to output an alterate field when a field is empty.

Class

views_ifempty_handler_field
@file Views field handler to output an alterate field when a field is empty.

Code

function option_definition() {
  $options = parent::option_definition();

  // Never display the label of this field.
  $options['label']['default'] = NULL;
  $options['emptyfield'] = array(
    'default' => '',
  );
  $options['outputfield'] = array(
    'default' => '',
  );
  return $options;
}