function pmtimetracking_default_field_bases in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmtimetracking/includes/pmtimetracking.field_base.inc \pmtimetracking_default_field_bases()
- 7.2 pmtimetracking/includes/pmtimetracking.field_base.inc \pmtimetracking_default_field_bases()
Field base definitions for PM Timetracking.
1 call to pmtimetracking_default_field_bases()
- pmtimetracking_migrate_create_fields in pmtimetracking/
includes/ pmtimetracking.migrate.inc - Creates and attaches fields to Drupal user.
File
- pmtimetracking/
includes/ pmtimetracking.field_base.inc, line 10 - Field definitions for the PM Timetracking module.
Code
function pmtimetracking_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: 'pm_billing_duration'
$field_bases['pm_billing_duration'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_billing_duration',
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
),
'translatable' => 0,
'type' => 'number_float',
);
// Exported field_base: 'pmtimetracking_parent'
$field_bases['pmtimetracking_parent'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmtimetracking_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(
'type' => 'none',
),
'target_bundles' => array(
'pmproject' => 'pmproject',
'pmissue' => 'pmissue',
'pmtask' => 'pmtask',
'pmticket' => 'pmticket',
),
),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'pm_billing_status'
$field_bases['pm_billing_status'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_billing_status',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'Not billable' => 'Not billable',
'Billable' => 'Billable',
'Billed' => 'Billed',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'pm_date'
$field_bases['pm_date'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_date',
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'cache_count' => 4,
'cache_enabled' => 0,
'granularity' => array(
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'timezone_db' => 'UTC',
'todate' => 'optional',
'tz_handling' => 'site',
),
'translatable' => 0,
'type' => 'datetime',
);
// Exported field_base: 'pm_duration'
// Warning: In older installations this field will be of type 'text'.
$field_bases['pm_duration'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_duration',
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
),
'translatable' => 0,
'type' => 'number_float',
);
// Exported field_base: 'pm_durationunit'
$field_bases['pm_durationunit'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_durationunit',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'hour' => 'Hour',
'day' => 'Day',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
return $field_bases;
}