function feeds_tamper_delete_instance in Feeds Tamper 6
Same name and namespace in other branches
- 7 feeds_tamper.inc \feeds_tamper_delete_instance()
Delete a single plugin instance.
Parameters
string|stdClass $instance: A plugin instance object or the id of a plugin instance.
Related topics
2 calls to feeds_tamper_delete_instance()
- FeedsTamperWebTestHelper::deleteTamperPlugin in tests/
feeds_tamper.test - feeds_tamper_ui_delete_form_submit in feeds_tamper_ui/
feeds_tamper_ui.admin.inc
File
- ./
feeds_tamper.inc, line 97 - Version agnostic parts of feeds_tamper.module.
Code
function feeds_tamper_delete_instance($instance) {
// Allow for string id or plugin object.
if (is_scalar($instance)) {
$instance = feeds_tamper_load_instance($instance);
}
ctools_include('export');
ctools_export_crud_delete('feeds_tamper', $instance);
}