function _commerce_node_checkout_installed_instances in Commerce Node Checkout 7
Returns a structured array defining the instances for this module
Return value
array An associative array specifying the instances we wish to add to our entities
1 call to _commerce_node_checkout_installed_instances()
- commerce_node_checkout_install in ./
commerce_node_checkout.install - Implements hook_install().
File
- ./
commerce_node_checkout.install, line 140 - Provides install, update, schema and uninstall hooks for the module
Code
function _commerce_node_checkout_installed_instances() {
$t = get_t();
$field_instances = array();
$field_instances['commerce_node_checkout_node'] = array(
'bundle' => 'commerce_node_checkout',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'link' => TRUE,
),
'type' => 'entityreference_label',
'weight' => 4,
),
),
'entity_type' => 'commerce_line_item',
'field_name' => 'commerce_node_checkout_node',
'label' => $t('Associated content'),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'options_select',
'weight' => 2,
),
);
return $field_instances;
}