function msnf_step_delete in Multistep Nodeform 6
Same name and namespace in other branches
- 7 includes/msnf.steps.inc \msnf_step_delete()
Delete a single step.
Parameters
<string> $content_type: Name of content type.
<string> $step_name: Name of step to delete.
1 call to msnf_step_delete()
- msnf_step_remove_step_submit in includes/
msnf.admin.inc - Submit handler for msnf_step_remove_step_form().
File
- includes/
msnf.steps.inc, line 237
Code
function msnf_step_delete($content_type, $step_name) {
db_query("DELETE FROM {msnf_step} WHERE type_name = '%s' AND step_name = '%s'", $content_type, $step_name);
db_query("DELETE FROM {msnf_step_fields} WHERE type_name = '%s' AND step_name = '%s'", $content_type, $step_name);
cache_clear_all('msnf_step_data:', 'cache', TRUE);
}