pmproject.field_base.inc in Drupal PM (Project Management) 7.3
Same filename and directory in other branches
Field definitions for the PM Project module.
File
pmproject/includes/pmproject.field_base.incView source
<?php
/**
* @file
* Field definitions for the PM Project module.
*/
/**
* Field base definitions for PM Project.
*/
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',
'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: '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',
'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: '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',
'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',
);
// 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 |
---|---|
pmproject_default_field_bases | Field base definitions for PM Project. |