'Stores details about drupal.org projects.', 'fields' => array( 'cid' => array( 'type' => 'int', 'not null' => TRUE, 'description' => 'Primary Key: Unique comment ID.', ), 'created_thread' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'description' => "Just like the 'thread' column in the comment table but using the created timestamp instead of the id for sorting.", ), ), 'primary key' => array('cid'), 'indexes' => array( 'comment_sort_created' => array('cid', 'created_thread'), ), ); return $schema; } /** * Implements hook_uninstall(). * * Removes used variables. */ function comment_sort_created_uninstall() { // Delete all (dynamically named) used variables. db_delete('variable')->condition('name', 'comment_sort_created_%', 'LIKE')->execute(); cache_clear_all('variables', 'cache_bootstrap'); }