/** * Preprocess yyyy / yyyy-mm / yyyy-mm-dd dates after saving an item add/edit form. * * @param array $args */ public function hookAfterSaveItem($args) { if (!$args['post'] and !$args['insert']) { return; } $item_id = intval($args["record"]["id"]); if ($item_id) { SELF::_preProcessItem($item_id); } # die("After Save Item"); }
/** * Preprocess numbers after saving an item add/edit form. * * @param array $args */ public function hookAfterSaveItem($args) { $item_id = intval(@$args["record"]["id"]); if ($item_id) { SELF::_preProcessItem($item_id); } }