public function EntityLabelEmptyFieldHandler::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_label.inc, line 30 - Contains the EntityLabelEmptyFieldHandler plugin for Empty Fields module.
Class
- EntityLabelEmptyFieldHandler
- Defines EntityLabelEmptyFieldHandler.
Code
public function form($context) {
$form['display'] = array(
'#type' => 'radios',
'#title' => t('Display options'),
'#default_value' => isset($this->options['display']) ? $this->options['display'] : 'text',
'#options' => array(
'text' => t('Text only'),
'link' => t('Link'),
),
'#required' => TRUE,
);
return $form;
}