$resourceId = $resource->getID(); } else { CMS_grandFather::raiseError('Can\'t get editions from given resource ID ' . $resource->getID() . ' for module ' . $module . ' ...'); $view->show(); } } if (!$cms_user->hasValidationClearance($module)) { CMS_grandFather::raiseError('User has no validation clearance on module ' . $module . ' ...'); $view->show(); } if (!APPLICATION_ENFORCES_WORKFLOW) { CMS_grandFather::raiseError('No APPLICATION_ENFORCES_WORKFLOW set ...'); $view->show(); } //MODULES VALIDATIONS PENDING $modulesValidations = CMS_modulesCatalog::getAllValidations($cms_user, true); $validationsCount = 0; //validations types $validationsType = array(); $validationsType['validationsType'] = array(); $count = 1; $selectedValidations = false; if ($modulesValidations && sizeof($modulesValidations)) { foreach ($modulesValidations as $codename => $moduleValidations) { //if module is not standard, echo its name, the number of validations to do and a link to its admin frontend if ($codename == MOD_STANDARD_CODENAME) { $modLabel = $cms_language->getMessage(MESSAGE_PAGE_STANDARD_MODULE_LABEL); } else { $mod = CMS_modulesCatalog::getByCodename($codename); $modLabel = $mod->getLabel($cms_language); }