pmteam.field_base.inc in Drupal PM (Project Management) 7.2
Same filename and directory in other branches
Field definitions for the PM Team module.
File
pmteam/includes/pmteam.field_base.incView source
<?php
/**
* @file
* Field definitions for the PM Team module.
*/
/**
* Implements hook_field_default_field_bases().
*/
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;
}
Functions
Name | Description |
---|---|
pmteam_default_field_bases | Implements hook_field_default_field_bases(). |