public function remove_delegate() { $account_id = phpgw::get_var('account_id'); $owner_id = phpgw::get_var('owner_id'); frontend_bofrontend::remove_delegate($account_id, $owner_id); $GLOBALS['phpgw']->redirect_link('/index.php', array('menuaction' => 'frontend.uidelegates.index')); }
public function remove_delegate() { $unit_id = phpgw::get_var('id'); $account_id = phpgw::get_var('account_id'); $result = frontend_bofrontend::remove_delegate($account_id, null, $unit_id); $args = array('menuaction' => 'rental.uiresultunit.edit', 'id' => $unit_id); if ($result) { $args['message'] = lang('delegate_removed'); } else { $args['error'] = lang('failed_removing_delegate'); } $GLOBALS['phpgw']->redirect_link('/index.php', $args); }