function viewreference_schema in View reference 6
Same name and namespace in other branches
- 6.2 viewreference.install \viewreference_schema()
Implementation of hook_schema().
Create a table of views we can easily query. Views.module does not provide this, wtf!
File
- ./
viewreference.install, line 43
Code
function viewreference_schema() {
$schema['viewreference'] = array(
'fields' => array(
'view_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'name' => array(
'type' => 'varchar',
'length' => '32',
'default' => '',
'not null' => TRUE,
),
'position' => array(
'type' => 'varchar',
'length' => '64',
'default' => '',
'not null' => TRUE,
),
'title' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'view_id',
),
);
return $schema;
}