You are here

public function EmptyFieldText::form in Empty fields 7.2

Implementation of EmptyFieldText::form().

Return value

array A FAPI array to be used in configuration of this empty text plugin.

Overrides EmptyFieldHandler::form

File

plugins/empty_fields_handler_text.inc, line 30
Contains the EmptyFieldText plugin for EmptyFieldHandler.

Class

EmptyFieldText
Defines EmptyFieldText.

Code

public function form($context) {
  $form['empty_text'] = array(
    '#type' => 'textarea',
    '#title' => t('Display Custom Text'),
    '#default_value' => isset($this->options['empty_text']) ? $this->options['empty_text'] : '',
    '#description' => t('Display text if the field is empty.'),
  );
  return $form;
}