function pmexpense_default_field_bases in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmexpense/includes/pmexpense.field_base.inc \pmexpense_default_field_bases()
- 7.3 pmexpense/includes/pmexpense.field_base.inc \pmexpense_default_field_bases()
Field base definitions for PM Expense.
2 calls to pmexpense_default_field_bases()
- pmexpense_migrate_create_fields in pmexpense/
includes/ pmexpense.migrate.inc - Creates and attaches fields to Drupal user.
- pmexpense_uninstall in pmexpense/
pmexpense.install - Implements hook_uninstall().
File
- pmexpense/
includes/ pmexpense.field_base.inc, line 10 - Field definitions for the PM Expense module.
Code
function pmexpense_default_field_bases() {
$field_bases = array();
// Exported field_base: 'pm_amount'
$field_bases['pm_amount'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_amount',
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
),
'translatable' => 0,
'type' => 'number_float',
);
// Exported field_base: 'pm_provider'
$field_bases['pm_provider'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_provider',
'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' => 'views',
'handler_settings' => array(
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
'view' => array(
'args' => array(),
'display_name' => 'entityreference_1',
'view_name' => 'pm_organization_list',
),
),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'pmexpense_parent'
$field_bases['pmexpense_parent'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmexpense_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(
'pmorganization' => 'pmorganization',
'pmproject' => 'pmproject',
'pmtask' => 'pmtask',
'pmticket' => 'pmticket',
'pmissue' => 'pmissue',
),
),
'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: 'pmexpense_date'
$field_bases['pmexpense_date'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmexpense_date',
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'granularity' => array(
'day' => 'day',
'hour' => 0,
'minute' => 0,
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'timezone_db' => '',
'todate' => '',
'tz_handling' => '',
),
'translatable' => 0,
'type' => 'datetime',
);
return $field_bases;
}