You are here

function term_level_field_info in Term Level Field 7

Implements hook_field_info().

File

./term_level.module, line 19
Field type for referencing terms with a level to an entity.

Code

function term_level_field_info() {
  return array(
    'term_level' => array(
      'label' => 'Term Level Field',
      'description' => t('This field references a term with a selectable level.'),
      'default_widget' => 'term_level_widget',
      'default_formatter' => 'term_level_default',
      'settings' => array(
        'voc' => '',
        'levels' => '',
      ),
      // Properties for Entity Metadata.
      'property_type' => 'field_item_term_level',
      'property_callbacks' => array(
        'term_level_entity_metadata_callback',
      ),
    ),
  );
}