function feeds_tamper_delete_instance in Feeds Tamper 7
Same name and namespace in other branches
- 6 feeds_tamper.inc \feeds_tamper_delete_instance()
Delete a single plugin instance.
Parameters
string|object $instance: A plugin instance object or the id of a plugin instance.
Related topics
3 calls to feeds_tamper_delete_instance()
- FeedsTamperWebTestHelper::deleteTamperPlugin in tests/
feeds_tamper.test - feeds_tamper_rectify_instances in ./
feeds_tamper.inc - Removes plugin instances whos source was removed.
- feeds_tamper_ui_delete_form_submit in feeds_tamper_ui/
feeds_tamper_ui.admin.inc - Delete plugin form submit handler.
File
- ./
feeds_tamper.inc, line 129 - 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);
}