function hook_eck_property_widget_info_alter in Entity Construction Kit (ECK) 7.3
Alters the widget type info returned by hook_eck_property_widget_info().
1 invocation of hook_eck_property_widget_info_alter()
- eck_property_info_widget_types in ./
eck.module - Returns information of property widgets from hook_eck_property_widget_info.
File
- ./
eck.api.php, line 76 - ECK's API documentation.
Code
function hook_eck_property_widget_info_alter(&$widget_types) {
// Change the label on the text widget type.
$widget_types['text']['label'] = t('Property text box');
// Add a newly defined property type to the allowed property types for the
// text widget.
$widget_types['text']['property types'] += array(
'mycoolnewpropertytype',
);
}