function flipping_book_schema in Flipping Book 7
Implements hook_schema().
4 string references to 'flipping_book_schema'
- flipping_book_dir in ./
flipping_book.module - Helper function: get flipping book import directory.
- flipping_book_settings_form in includes/
flipping_book.admin.inc - Flipping Book settings form.
- flipping_book_settings_form_submit in includes/
flipping_book.admin.inc - Submit callback.
- flipping_book_uninstall in ./
flipping_book.install - Implements hook_uninstall().
File
- ./
flipping_book.install, line 11 - Install, update and uninstall functions for the flipping_book module.
Code
function flipping_book_schema() {
$schema['flipping_book'] = array(
'description' => 'Flipping Book files.',
'fields' => array(
'fbid' => array(
'description' => 'The primary identifier for a flipping_book row.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The title of the flipping_book.',
),
'dir' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'The directory of the flipping_book',
),
'created' => array(
'description' => 'The Unix timestamp when the flipping_book was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'unique keys' => array(
'fbid_dir' => array(
'fbid',
'dir',
),
'dir' => array(
'dir',
),
),
'primary key' => array(
'fbid',
),
);
return $schema;
}