You are here

function serial_field_info in Serial Field 7

Same name and namespace in other branches
  1. 6 serial.module \serial_field_info()

Implements hook_field_info().

File

./serial.module, line 12
The Serial module main file.

Code

function serial_field_info() {
  return array(
    SERIAL_FIELD_TYPE => array(
      'label' => t('Serial'),
      'description' => t('Auto increment serial field type.'),
      // The "property_type" should be defined for accessing the
      // field by entity metadata wrapper.
      'property_type' => 'integer',
      'default_widget' => 'serial_widget_default',
      'default_formatter' => 'serial_formatter_default',
    ),
  );
}