osclass/OSClass — Issue #87: Hooks in admin section too?
Author: evcz
Created: 2011-12-21 12:13:29+00:00
State: open

Shouldn't the hooks get called into the admin section too?

oc-admin/items.php

osc_add_flash_ok_message( _m('The item has been enabled'), 'admin');
if($item['b_enabled']==0 && $item['b_active']==1) {

could instead be like:

osc_add_flash_ok_message( _m('The item has been enabled'), 'admin');
osc_run_hook( 'enable_item', $id );
if($item['b_enabled']==0 && $item['b_active']==1) {