function eck_title_property_widget in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7.2 plugins/property_behavior/title.inc \eck_title_property_widget()
How to input a title.
File
- plugins/
property_behavior/ title.inc, line 24
Code
function eck_title_property_widget($property, $vars) {
$entity = $vars['entity'];
$title = _eck_title_property_extract_title($entity, $property);
return array(
'#type' => 'textfield',
'#title' => $vars['properties'][$property]['label'],
'#default_value' => $title,
'#required' => TRUE,
);
}