function machine_name_field_widget_info in Machine name 7
Same name and namespace in other branches
- 7.2 machine_name.module \machine_name_field_widget_info()
Implements hook_field_widget_info().
File
- ./
machine_name.module, line 35 - Defines a machine name field type, relying on Form API's #type 'machine_name'.
Code
function machine_name_field_widget_info() {
return array(
'machine_name_default' => array(
'label' => t('Machine name'),
'field types' => array(
'machine_name',
),
'settings' => array(
'size' => 128,
),
),
);
}