You are here

function commerce_coupon_exportable_schema_fields in Commerce Coupon 7

1 call to commerce_coupon_exportable_schema_fields()
commerce_coupon_schema in ./commerce_coupon.install
Implements hook_schema().

File

./commerce_coupon.install, line 95
Install, update and uninstall functions for the commerce_coupon module.

Code

function commerce_coupon_exportable_schema_fields($module_col = 'module', $status_col = 'status') {
  return array(
    $status_col => array(
      'type' => 'int',
      'not null' => TRUE,
      // Set the default to ENTITY_CUSTOM without using the constant as it is
      // not safe to use it at this point.
      'default' => 0x1,
      'size' => 'tiny',
      'description' => 'The exportable status of the entity.',
    ),
    $module_col => array(
      'description' => 'The name of the providing module if the entity has been defined in code.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => FALSE,
    ),
  );
}