You are here

function interval_entity_property_field_item_interval_info in Interval Field 7

Defines the data structure used for interval field items.

1 call to interval_entity_property_field_item_interval_info()
interval_field_entity_property_info_alter in ./interval.module
Callback to alter the property info of interval fields.

File

./interval.module, line 39
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_entity_property_field_item_interval_info() {
  return array(
    'interval' => array(
      'type' => 'integer',
      'label' => t('Interval number'),
      'description' => t('The number of multiples of the period.'),
    ),
    'period' => array(
      'type' => 'token',
      'label' => t('Interval period'),
      'options list' => 'interval_period_options_list',
    ),
  );
}