array( 'mid' => array('type' => 'serial', 'not null' => TRUE, 'unsigned' => TRUE), 'pid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'unsigned' => TRUE), 'path' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'imagepath' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'mouseover' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'title' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'alt' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'class' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'id' => array('type' => 'varchar', 'not null' => TRUE, 'default' => '', 'length' => 255), 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'), 'enabled' => array('type' => 'int', 'not null' => TRUE, 'default' => 1, 'size' => 'tiny'), 'type' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), 'description' => array('type' => 'text', 'not null' => FALSE) ), 'primary key' => array('mid'), ); return $schema; } /** * Implementation of hook_install */ function imagemenu_install() { // Create imagemenu tables. drupal_install_schema('imagemenu'); } /** * Implementation of hook_uninstall */ function imagemenu_uninstall() { // Delete imagemenu tables. drupal_uninstall_schema('imagemenu'); }