function pmnote_default_field_bases in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmnote/includes/pmnote.field_base.inc \pmnote_default_field_bases()
- 7.2 pmnote/includes/pmnote.field_base.inc \pmnote_default_field_bases()
Field base definitions for PM Note.
1 call to pmnote_default_field_bases()
- pmnote_migrate_create_fields in pmnote/
includes/ pmnote.migrate.inc - Creates and attaches fields to Drupal user.
File
- pmnote/
includes/ pmnote.field_base.inc, line 10 - Field definitions for the PM Note module.
Code
function pmnote_default_field_bases() {
$field_bases = array();
// Exported field_base: 'body'
$field_bases['body'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(
0 => 'node',
),
'field_name' => 'body',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(),
'translatable' => 0,
'type' => 'text_with_summary',
);
// Exported field_base: 'pmnote_parent'
$field_bases['pmnote_parent'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmnote_parent',
'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',
'pmproject' => 'pmproject',
'pmtask' => 'pmtask',
'pmticket' => 'pmticket',
'pmissue' => 'pmissue',
),
),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
return $field_bases;
}