You are here

function entity_exportable_schema_fields in Entity API 7

Defines schema fields required for exportable entities.

Warning: Do not call this function in your module's hook_schema() implementation or update functions. It is not safe to call functions of dependencies at this point. Instead of calling the function, just copy over the content. For more details see the issue http://drupal.org/node/1122812.

File

./entity.module, line 1065

Code

function entity_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,
    ),
  );
}