You are here

function _commerce_node_checkout_installed_fields in Commerce Node Checkout 7

Returns a structured array defining the fields created by this module.

Return value

array An associative array specifying the fields we wish to add to our entities

2 calls to _commerce_node_checkout_installed_fields()
commerce_node_checkout_install in ./commerce_node_checkout.install
Implements hook_install().
commerce_node_checkout_uninstall in ./commerce_node_checkout.install
Implements hook_uninstall().

File

./commerce_node_checkout.install, line 94
Provides install, update, schema and uninstall hooks for the module

Code

function _commerce_node_checkout_installed_fields() {
  $field_bases = array();
  $field_bases['commerce_node_checkout_node'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'commerce_node_checkout_node',
    'foreign keys' => array(
      'node' => array(
        'columns' => array(
          'target_id' => 'nid',
        ),
        'table' => 'node',
      ),
    ),
    'indexes' => array(
      'target_entity' => array(
        0 => 'target_id',
      ),
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'base',
      'handler_settings' => array(
        'target_bundles' => array(),
      ),
      'handler_submit' => 'Change handler',
      'target_type' => 'node',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );
  return $field_bases;
}