User Tools

Site Tools



The following cal is made from within the ItemAdminService:

Bigace_Hooks::do_action('delete-item', $itemtype, $id, $language);

If a language version is deleted, the last parameter is set to a locale, otherwise (if the complete item is deleted) the last parameter is null.

Example usage

Bigace_Hooks::add_action('delete-item', 'deleteItem', 10, 3);
function deleteItem($itemtype, $id, $language = null)
    $admin = new Bigace_X_Admin($itemtype);
    if($language !== null) {
        $admin->deleteLanguage($id, $language);
    } else {
bigace/developer/action/delete-item.txt · Last modified: 2011/02/04 13:22 by kevin