function merci_permissions_fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
1 call to merci_permissions_fields()
- merci_permissions_merci_fields_info in merci_permissions/
merci_permissions.module - Implements hook_merci_fields_info().
1 string reference to 'merci_permissions_fields'
- merci_permissions_merci_fields_info in merci_permissions/
merci_permissions.module - Implements hook_merci_fields_info().
File
- merci_permissions/
merci_permissions_fields.inc, line 3
Code
function merci_permissions_fields() {
$field_bases = array();
// Exported field_base: MERCI_ALLOWED_ROLES
$field_bases[MERCI_ALLOWED_ROLES] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_ALLOWED_ROLES,
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'faculty' => 'Faculty',
'student' => 'Student',
'administrator' => 'Administrator',
'homeroom' => 'Homeroom',
'manager' => 'Manager',
'operator' => 'Operator',
'operator_lead' => 'Operator Lead',
'organization' => 'Organization',
'suspended' => 'Suspended',
),
'allowed_values_function' => 'merci_permissions_allowed_values',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'field_override_permissions'
$field_bases[MERCI_OVERRIDE_PERMISSIONS] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_OVERRIDE_PERMISSIONS,
'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;
}