public static function RulesDataUINumberBoolean::inputForm in Boolean Field 7
Constructs the direct input form.
Return value
array The direct input form.
Overrides RulesDataDirectInputFormInterface::inputForm
File
- ./
boolean.rules.inc, line 32 - Provides integration with Rules module.
Class
- RulesDataUINumberBoolean
- UI for boolean data.
Code
public static function inputForm($name, $info, $settings, RulesPlugin $element) {
$settings += array(
$name => isset($info['default value']) ? $info['default value'] : NULL,
);
$form[$name] = array(
'#type' => 'select',
'#options' => boolean_value_info(),
'#default_value' => $settings[$name],
);
return $form;
}