function fieldset_helper_schema in Fieldset helper 6
Same name and namespace in other branches
- 6.2 fieldset_helper.install \fieldset_helper_schema()
- 7.2 fieldset_helper.install \fieldset_helper_schema()
Implementation of hook_schema().
File
- ./
fieldset_helper.install, line 37 - Installation information for the 'Fieldset helper' module.
Code
function fieldset_helper_schema() {
// Learn more at http://api.drupal.org/api/function/hook_schema
return array(
'fieldset_helper_state_manager' => array(
'description' => t("Table to save a short numeric lookup id for a DOM element"),
'fields' => array(
'id' => array(
'description' => 'The unique id',
'type' => 'serial',
// auto increment
'unsigned' => TRUE,
'not null' => TRUE,
),
'path' => array(
'description' => "A drupal path",
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'element_id' => array(
'description' => "The unique DOM element id.",
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'primary key' => array(
'id',
),
'indexes' => array(
'path' => array(
'path',
),
),
),
);
}