function getModule() { $normalModules = parent::getModule(); if (isset($normalModules[translate('LBL_RELATIONSHIPS')])) { unset($normalModules[translate('LBL_RELATIONSHIPS')]); } return $normalModules; }
function processStudio($ajax) { $this->ajax->addCrumb(translate('LBL_STUDIO'), 'ModuleBuilder.main("studio")'); if (!isset($this->editModule)) { //Studio Select Module Page $this->generateStudioModuleButtons(); $this->question = translate('LBL_QUESTION_EDIT'); $this->title = translate('LBL_STUDIO'); global $current_user; if (is_admin($current_user)) { $this->actions = "<input class=\"button\" type=\"button\" id=\"exportBtn\" name=\"exportBtn\" onclick=\"ModuleBuilder.getContent('module=ModuleBuilder&action=exportcustomizations');\" value=\"" . translate('LBL_BTN_EXPORT') . '">'; } $this->help = 'studioHelp'; } else { $module = new StudioModule($this->editModule); $this->ajax->addCrumb($module->name, !empty($this->view) ? 'ModuleBuilder.getContent("module=ModuleBuilder&action=wizard&view_module=' . $this->editModule . '")' : ''); switch ($this->view) { case 'layouts': //Studio Select Layout page $this->buttons = $module->getLayouts(); $this->title = $module->name . " " . translate('LBL_LAYOUTS'); $this->question = translate('LBL_QUESTION_LAYOUT'); $this->help = 'layoutsHelp'; $this->ajax->addCrumb(translate('LBL_LAYOUTS'), ''); break; case 'subpanels': //Studio Select Subpanel page. $this->buttons = $module->getSubpanels(); $this->title = $module->name . " " . translate('LBL_SUBPANELS'); $this->question = translate('LBL_QUESTION_SUBPANEL'); $this->ajax->addCrumb(translate('LBL_SUBPANELS'), ''); $this->help = 'subpanelHelp'; break; case 'search': //Studio Select Search Layout page. $this->buttons = $module->getSearch(); $this->title = $module->name . " " . translate('LBL_SEARCH'); $this->question = translate('LBL_QUESTION_SEARCH'); $this->ajax->addCrumb(translate('LBL_LAYOUTS'), 'ModuleBuilder.getContent("module=ModuleBuilder&action=wizard&view=layouts&view_module=' . $this->editModule . '")'); $this->ajax->addCrumb(translate('LBL_SEARCH'), ''); $this->help = 'searchHelp'; break; default: //Studio Edit Module Page $this->buttons = $module->getModule(); $this->question = translate('LBL_QUESTION_MODULE'); $this->title = translate('LBL_EDIT') . " " . $module->name; $this->help = 'moduleHelp'; } } }