You are here

function merci_restrictions_fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

1 call to merci_restrictions_fields()
merci_restrictions_merci_fields_info in merci_restrictions/merci_restrictions.module
Implements hook_merci_fields_info().
1 string reference to 'merci_restrictions_fields'
merci_restrictions_merci_fields_info in merci_restrictions/merci_restrictions.module
Implements hook_merci_fields_info().

File

merci_restrictions/merci_restrictions_fields.inc, line 3

Code

function merci_restrictions_fields() {
  $field_bases = array();

  // Exported field_base: MERCI_RESTRICTIONS
  $field_bases[MERCI_RESTRICTIONS] = array(
    'active' => 1,
    'cardinality' => -1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => MERCI_RESTRICTIONS,
    'foreign keys' => array(
      'merci_restrictions' => array(
        'columns' => array(
          'target_id' => 'id',
        ),
        'table' => 'merci_restrictions',
      ),
    ),
    'indexes' => array(
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'base',
      'handler_settings' => array(
        'behaviors' => array(
          'views-select-list' => array(
            'status' => 0,
          ),
        ),
        'sort' => array(
          'type' => 'none',
        ),
        'target_bundles' => array(),
      ),
      'target_type' => 'merci_restrictions',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );

  // Exported field_base: MERCI_CHECKOUT_OFFSITE
  $field_bases[MERCI_CHECKOUT_OFFSITE] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => MERCI_CHECKOUT_OFFSITE,
    'foreign keys' => array(),
    'indexes' => array(
      'value' => array(
        0 => 'value',
      ),
    ),
    'locked' => 0,
    'module' => 'list',
    'settings' => array(
      'allowed_values' => array(
        0 => '',
        1 => '',
      ),
      'allowed_values_function' => '',
    ),
    'translatable' => 0,
    'type' => 'list_boolean',
  );

  // Exported field_base: MERCI_CHECKOUT_MAX_LENGTH
  $field_bases[MERCI_CHECKOUT_MAX_LENGTH] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => MERCI_CHECKOUT_MAX_LENGTH,
    'foreign keys' => array(
      'format' => array(
        'columns' => array(
          'format' => 'format',
        ),
        'table' => 'filter_format',
      ),
    ),
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

  // Exported field_base: 'field_override_restrictions'
  $field_bases[MERCI_OVERRIDE_RESTRICTIONS] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => MERCI_OVERRIDE_RESTRICTIONS,
    'foreign keys' => array(
      'users' => array(
        'columns' => array(
          'target_id' => 'uid',
        ),
        'table' => 'users',
      ),
    ),
    'indexes' => array(
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'base',
      'handler_settings' => array(
        'behaviors' => array(
          'views-select-list' => array(
            'status' => 0,
          ),
        ),
        'sort' => array(
          'type' => 'none',
        ),
        'target_bundles' => array(),
      ),
      'target_type' => 'user',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );
  return $field_bases;
}