function intEditGroup(&$smarty, $group_name) { $edit_templates = getEditTemplateArray(); if (sizeof($edit_templates) == 0) { redirectToGroupInfo($group_name); } array_map("checkTplFileName", $edit_templates); $edit_template_files = array_map(create_function('$tpl_name', 'return "plugins/group/edit/".$tpl_name.".tpl";'), $edit_templates); editGroupAssignValues($smarty, $group_name, $edit_templates, $edit_template_files); showEditGroupInterface($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); } } }