pmteam.field_base.inc in Drupal PM (Project Management) 7.3
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',
'indexes' => array(
'target_id' => array(
0 => 'target_id',
),
),
'locked' => 0,
'module' => 'entityreference',
'settings' => array(
'handler' => 'views',
'handler_settings' => array(
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
'view' => array(
'args' => array(),
'display_name' => 'pm_user_filter',
'view_name' => 'pm_entity_reference_user_filter',
),
),
'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',
);
// Exported field_base: 'body'.
$field_bases['body'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(
0 => 'node',
),
'field_name' => 'body',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(),
'translatable' => 0,
'type' => 'text_with_summary',
);
return $field_bases;
}
Functions
Name | Description |
---|---|
pmteam_default_field_bases | Implements hook_field_default_field_bases(). |