'page', 'create' => 'create')); variable_set('notifications_ui_node', array('links' => 'links', 'teaserlinks' => 'teaserlinks', 'block' => 'block')); variable_set('notifications_ui_account_options', array('links' => 'links', 'block' => 'block')); // The most common options for notifications_content: thread, nodetype, author variable_set('notifications_ui_types', array('thread' => 'thread', 'nodetype' => 'nodetype', 'author' => 'author')); } /** * Implementation of hook_uninstall() */ function notifications_ui_uninstall() { // Some global variables variable_del('notifications_ui_per_type'); variable_del('notifications_ui_user'); variable_del('notifications_ui_node'); variable_del('notifications_ui_account_options'); // Just delete variables for subscription types and node types variable_del('notifications_ui_types'); foreach (array_keys(node_get_types()) as $type) { variable_del('notifications_node_ui_'. $type); } } /** * Update UI variables */ function notifications_ui_update_6000() { // All options will be messed up so we better do manual review variable_del('notifications_link_teaser'); drupal_set_message(t('Please, check all your Notifications UI settings and note the new options.')); return array(); }