function pmteam_default_field_bases in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmteam/includes/pmteam.field_base.inc \pmteam_default_field_bases()
- 7.3 pmteam/includes/pmteam.field_base.inc \pmteam_default_field_bases()
Implements hook_field_default_field_bases().
2 calls to pmteam_default_field_bases()
- pmteam_migrate_create_fields in pmteam/
includes/ pmteam.migrate.inc - Creates and attaches fields to Drupal user.
- pmteam_uninstall in pmteam/
pmteam.install - Implements hook_uninstall().
File
- pmteam/
includes/ pmteam.field_base.inc, line 10 - Field definitions for the PM Team module.
Code
function pmteam_default_field_bases() {
$field_bases = array();
// Exported field_base: 'pmteam_user'
$field_bases['pmteam_user'] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmteam_user',
'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(
'direction' => 'ASC',
'property' => 'name',
'type' => 'property',
),
'target_bundles' => array(),
),
'target_type' => 'user',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'pmteam_organization'
$field_bases['pmteam_organization'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmteam_organization',
'foreign keys' => array(
'node' => array(
'columns' => array(
'target_id' => 'nid',
),
'table' => 'node',
),
),
'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(
'direction' => 'ASC',
'property' => 'title',
'type' => 'property',
),
'target_bundles' => array(
'pmorganization' => 'pmorganization',
),
),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
return $field_bases;
}