function pmproject_default_field_bases in Drupal PM (Project Management) 7.2
Same name and namespace in other branches
- 8 pmproject/includes/pmproject.field_base.inc \pmproject_default_field_bases()
- 7.3 pmproject/includes/pmproject.field_base.inc \pmproject_default_field_bases()
Field base definitions for PM Project.
2 calls to pmproject_default_field_bases()
- pmproject_migrate_create_fields in pmproject/
includes/ pmproject.migrate.inc - Creates and attaches fields to Drupal user.
- pmproject_uninstall in pmproject/
pmproject.install - Implements hook_uninstall().
File
- pmproject/
includes/ pmproject.field_base.inc, line 10 - Field definitions for the PM Project module.
Code
function pmproject_default_field_bases() {
$field_bases = array();
// Exported field_base: 'pm_assigned'
$field_bases['pm_assigned'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_assigned',
'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: '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' => '',
'todate' => 'optional',
'tz_handling' => 'none',
),
'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',
);
// Exported field_base: 'pm_manager'
$field_bases['pm_manager'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_manager',
'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: 'pm_projectcategory'
$field_bases['pm_projectcategory'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_projectcategory',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'development' => 'development',
'support' => 'support',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'pm_projectpriority'
$field_bases['pm_projectpriority'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_projectpriority',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'1-low' => 'low',
'2-normal' => 'normal',
'3-high' => 'high',
'4-urgent' => 'urgent',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'pm_projectstatus'
$field_bases['pm_projectstatus'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_projectstatus',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'inserted' => 'inserted',
'in progress' => 'in progress',
'on hold' => 'on hold',
'completed' => 'completed',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'pmproject_parent'
$field_bases['pmproject_parent'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pmproject_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',
),
),
'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_currency'
$field_bases['pm_currency'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_currency',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'USD' => 'US Dollar',
'AUD' => 'Australian Dollar',
'CAD' => 'Canadian Dollar',
'EUR' => 'Euro',
'GBP' => 'British Pound',
'JPY' => 'Japanese Yen',
'CHF' => 'Swiss Franc',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'pm_price'
$field_bases['pm_price'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_price',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'pm_pricemode'
$field_bases['pm_pricemode'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'pm_pricemode',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'not applicable' => 'Not Applicable',
'hourly' => 'Hourly',
'daily' => 'Daily',
'fixed_price' => 'Fixed Price',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
return $field_bases;
}