You are here

function party_hat_field_info in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_hat/party_hat.module \party_hat_field_info()

Implements hook_field_info().

File

modules/party_hat/party_hat.module, line 534
party_hat.module Provides an extensible access system for parties.

Code

function party_hat_field_info() {
  return array(
    'hat_reference' => array(
      'label' => t('Party hat reference'),
      'description' => t('Stores a reference to a party hat entity.'),
      'default_widget' => 'options_buttons',
      'default_formatter' => 'hat_reference_default',
      'module' => 'party_hat',
      'settings' => array(
        'entity_types' => array(
          'party',
        ),
      ),
      'instance_settings' => array(),
      'no_ui' => TRUE,
      'property_type' => 'party_hat',
      'property_callbacks' => array(
        'party_hat_entity_metadata_field_hat_reference_callback',
      ),
    ),
  );
}