function save_entity(&$focus, $global_vars) { Accounting::presave_entity($focus, $global_vars); global $currentModule; $focus->save($currentModule); }