public static function RulesDataUIDate::render in Rules 7.2
Implements RulesDataDirectInputFormInterface::render().
Overrides RulesDataUIText::render
File
- ui/
ui.data.inc, line 426 - Contains data type related forms.
Class
- RulesDataUIDate
- UI for dates.
Code
public static function render($value) {
$value = is_numeric($value) ? format_date($value, 'short') : check_plain($value);
return array(
'content' => array(
'#markup' => $value,
),
'#attributes' => array(
'class' => array(
'rules-parameter-date',
),
),
);
}