You are here

function commerce_registration_schema in Commerce Registration 7.2

Same name and namespace in other branches
  1. 7.3 commerce_registration.install \commerce_registration_schema()

Implements hook_schema().

File

./commerce_registration.install, line 12
Commerce Registration install file.

Code

function commerce_registration_schema() {
  $schema = array();
  $schema['commerce_registration_node_settings'] = array(
    'description' => 'Registration settings for product display type nodes.',
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'description' => 'The node ID.',
        'not null' => TRUE,
      ),
      'settings' => array(
        'description' => 'Serialized array of settings for the node.',
        'type' => 'text',
        'size' => 'medium',
        'serialized' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}