<?php
function fieldset_helper_install() {
variable_set('fieldset_helper_auto_exclude', array());
db_query("UPDATE {system} SET weight = 1000 WHERE name = 'fieldset_helper'");
drupal_install_schema('fieldset_helper');
}
function fieldset_helper_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'fieldset_helper_%'");
cache_clear_all('variables', 'cache');
drupal_uninstall_schema('fieldset_helper');
}
function fieldset_helper_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', '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'),
)
),
);
}