forena.install in Forena Reports 7
Same filename and directory in other branches
Installation api for module
File
forena.installView source
<?php
// $Id$
/**
* @file
* Installation api for module
*/
/**
* Implementation of hook_schema
*
* @return unknown
*/
function forena_schema() {
$schema['forena_reports'] = array(
'fields' => array(
'report_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'title' => array(
'type' => 'varchar',
'length' => 63,
'not null' => TRUE,
),
'category' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'hidden' => array(
'type' => 'int',
'not null' => FALSE,
),
'cache' => array(
'type' => 'text',
),
'modified' => array(
'type' => 'int',
),
),
'primary key' => array(
'report_name',
),
'indexes' => array(
'category' => array(
'category',
),
),
);
return $schema;
}
Functions
Name | Description |
---|---|
forena_schema | Implementation of hook_schema |