You are here

function machine_name_field_widget_info in Machine name 7.2

Same name and namespace in other branches
  1. 7 machine_name.module \machine_name_field_widget_info()

Implements hook_field_widget_info().

File

./machine_name.module, line 34
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,
      ),
    ),
  );
}