t('A table for storing Navigate favorites.'), 'fields' => array( 'fav_id' => array( 'description' => t('The primary identifier for a Navigate favorite.'), 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE), 'wid' => array( 'description' => t('The primary identifier for a widget'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE), 'uid' => array( 'description' => t('The primary identifier for a user'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE), 'name' => array( 'description' => t('The name of the favorite.'), 'type' => 'varchar', 'length' => 200, 'not null' => TRUE, 'default' => ''), 'path' => array( 'description' => t('The path of the favorite.'), 'type' => 'text', 'size' => 'small', 'not null' => TRUE, 'default' => ''), 'weight' => array( 'description' => t('The weight of the favorite.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE), ), 'unique keys' => array( 'fav_id' => array('fav_id') ), 'primary key' => array('fav_id'), ); return $schema; } /** * Implementation of hook_install(). */ function navigate_favorites_install() { drupal_install_schema('navigate_favorites'); } /** * Implementation of hook_uninstall(). */ function navigate_favorites_uninstall() { include_once(drupal_get_path('module', 'navigate') .'/navigate.module'); drupal_uninstall_schema('navigate_favorites'); navigate_uninstall_widget_module('navigate_favorites'); }