TRUE, 'default' => 0)); break; } return $ret ? $ret : array(); } function og_panels_uninstall() { db_query('DROP TABLE {og_panels}'); // Delete variables $variables = array(); foreach ($variables as $variable) { variable_del($variable); } } /** * Implementation of hook_schema(). */ function og_panels_schema() { $schema['og_panels'] = array( 'description' => t('Stores a panel for a group'), 'fields' => array( 'nid' => array( 'description' => t("The group's {node}.nid."), 'type' => 'int', 'size' => 'normal', 'not null' => TRUE, ), 'did' => array( 'description' => t("The group's panels did."), 'type' => 'int', 'size' => 'normal', 'not null' => TRUE, ), 'published' => array( 'description' => t("is the panels published yet or not"), 'type' => 'int', 'size' => 'normal', 'not null' => TRUE, ), 'page_title' => array( 'description' => t("store the Pagetitle of the panel"), 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, ), 'path' => array( 'description' => t("stores the path of the panel page"), 'type' => 'varchar', 'length' => 100, 'not null' => TRUE, ), 'default_page' => array( 'description' => t("stores wether the panel page is the default page"), 'type' => 'int', 'size' => 'normal', 'null' => TRUE, ), 'show_blocks' => array( 'description' => t("stores wether the panel page is the default page"), 'type' => 'int', 'size' => 'normal', 'null' => TRUE, ), 'weight' => array( 'description' => t("stores the page weight of the page"), 'type' => 'int', 'size' => 'normal', 'length' => 4, 'not null' => TRUE, 'default' => '0', ), ), 'primary keys' => ('did'), ); return $schema; }