function intEditUser(&$smarty, $user_id) { $edit_templates = getEditTemplateArray(); if (sizeof($edit_templates) == 0) { redirectToUserInfo($user_id); } array_map("checkTplFileName", $edit_templates); $edit_template_files = array_map(create_function('$tpl_name', 'return "plugins/user/edit/".$tpl_name.".tpl";'), $edit_templates); editUserAssignValues($smarty, $user_id, $edit_templates, $edit_template_files); showEditUserInterface($smarty); }
function redirectToTargetInfo() { /* redirect to Target info, normally called when update was sucessful */ if ($this->target == "group") { redirectToGroupInfo($this->target_id); } else { if ($this->target == "user") { redirectToUserInfo($this->target_id); } } }