category::delete (public)

 category::delete [ -batch_mode ] category_id

Defined in packages/categories/tcl/categories-procs.tcl

Deletes a category. category_tree::flush_cache should be used afterwards.

Switches:
-batch_mode (optional, boolean)
Parameters:
category_id (required)
category_id of the category to be deleted.
Options:
-batch_mode
Indicates that the cache for category translations should not be flushed. Useful when deleting several categories at once. Don't forget to call reset_translation_cache
Author:
Timo Hentschel <timo@timohentschel.de>
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_crud category_crud (test categories) category::delete category::delete test_category_crud->category::delete category::flush_translation_cache category::flush_translation_cache (public) category::delete->category::flush_translation_cache db_exec_plsql db_exec_plsql (public) category::delete->db_exec_plsql category::map_object category::map_object (public) category::map_object->category::delete packages/categories/www/cadmin/category-delete-2.tcl packages/categories/ www/cadmin/category-delete-2.tcl packages/categories/www/cadmin/category-delete-2.tcl->category::delete

Testcases:
category_crud
[ show source ]
Show another procedure: