You are here

function panels_schema_9 in Panels 7.3

2 calls to panels_schema_9()
panels_schema_10 in ./panels.install
panels_update_7307 in ./panels.install
Add a custom table for allowed types.

File

./panels.install, line 64

Code

function panels_schema_9() {
  $schema = panels_schema_8();
  $schema['panels_allowed_types'] = array(
    'fields' => array(
      'module' => array(
        'description' => 'The name of the module requiring allowed type settings.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'type' => array(
        'description' => 'Ctools content type to allow.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'allowed' => array(
        'description' => 'A boolean for if the type is allowed or not.',
        'type' => 'int',
        'size' => 'tiny',
        'default' => 1,
      ),
    ),
    'indexes' => array(
      'type_idx' => array(
        'type',
      ),
    ),
  );
  return $schema;
}