Skip to content

Latest commit

 

History

History
executable file
·
61 lines (40 loc) · 2.49 KB

File metadata and controls

executable file
·
61 lines (40 loc) · 2.49 KB
lang php

Admin Content Controller Extension Hooks

[TOC=2]

category_delete($cat_ids)

Parameter Type Description
$cat_ids Array Array of category IDs being deleted
Returns Void

This hook is executed when a category is deleted via the control panel. It can be used to perform additional actions before the category is deleted.

How it's called:

ee()->extensions->call('category_delete', $cat_ids);

category_save($cat_id, $data)

Parameter Type Description
$cat_id Int ID of category saved
$category_data Array Category meta data
Returns Void

This hook is executed when a new category is saved or an existing category was edited via the control panel. It can be used to perform additional actions after the category is saved.

How it's called:

ee()->extensions->call('category_save', $cat_id, $category_data);

category_reorder_end($changed_rows, $group_id)

Parameter Type Description
$changed_rows Array Changed category rows saved during reorder. Each row includes cat_id, parent_id, and cat_order.
$group_id Int Category group ID being reordered
Returns Void

This hook is executed after category reordering is successfully saved in the Control Panel. It only runs after the reorder transaction completes and receives only the rows that changed.

How it's called:

ee()->extensions->call('category_reorder_end', $changed_rows, (int) $group_id);

foreign_character_conversion_array

See Content_publish's foreign_character_conversion_array.