You are here

function interval_field_info in Interval Field 7

Implements hook_field_info().

Provides the description of the field.

File

./interval.module, line 21
Defines an interval field @copyright Copyright(c) 2011 Rowlands Group @license GPL v2+ http://www.fsf.org/licensing/licenses/gpl.html @author Lee Rowlands leerowlands at rowlandsgroup dot com

Code

function interval_field_info() {
  return array(
    // We name our field as the associative name of the array.
    'interval' => array(
      'label' => t('Interval'),
      'description' => t('Provides an interval field allowing you to enter a number and select a period.'),
      'default_widget' => 'interval_default',
      'default_formatter' => 'interval_default',
      // Add entity property metadata for the entity api module.
      'property_type' => 'field_item_interval',
      'property_callbacks' => array(
        'interval_field_entity_property_info_alter',
      ),
    ),
  );
}