function workflow_uninstall in Workflow 5.2
Same name and namespace in other branches
- 6.2 workflow.install \workflow_uninstall()
- 6 workflow.install \workflow_uninstall()
- 7.2 workflow.install \workflow_uninstall()
- 7 workflow.install \workflow_uninstall()
Implementation of hook_uninstall().
File
- ./
workflow.install, line 238
Code
function workflow_uninstall() {
// Drop database tables.
db_query('DROP TABLE {workflow_states}');
db_query('DROP TABLE {workflow_transitions}');
db_query('DROP TABLE {workflows}');
db_query('DROP TABLE {workflow_type_map}');
db_query('DROP TABLE {workflow_node}');
db_query('DROP TABLE {workflow_node_history}');
db_query('DROP TABLE {workflow_scheduled_transition}');
if (module_exists('actions')) {
db_query("DELETE FROM {actions} WHERE callback = 'workflow_select_given_state_action'");
db_query("DELETE FROM {actions} WHERE callback = 'workflow_select_next_state_action'");
}
variable_del('workflow_states_per_page');
foreach (node_get_types() as $type => $name) {
variable_del('workflow_' . $type);
}
}