AdvAgg Modifications page', array('@url' => url('admin/config/development/performance/advagg/mod', array('fragment' => 'edit-advagg-mod-css-defer')))); } else { return t('The advagg_mod_css_defer_rel_preload variable has been deleted.'); } } /** * Move advagg_mod_js_get_external_dns to advagg_mod_js_inline_resource_hints. */ function advagg_mod_update_7202(&$sandbox) { $advagg_mod_js_inline_resource_hints = variable_get('advagg_mod_js_inline_resource_hints', NULL); $advagg_mod_js_get_external_dns = variable_get('advagg_mod_js_get_external_dns', NULL); if (is_null($advagg_mod_js_get_external_dns)) { return t('Nothing needed to happen.'); } variable_del('advagg_mod_js_get_external_dns'); if (!is_null($advagg_mod_js_inline_resource_hints) || empty($advagg_mod_js_inline_resource_hints)) { return t('Nothing needed to happen.'); } variable_set('advagg_mod_js_inline_resource_hints', $advagg_mod_js_inline_resource_hints); return t('Variable has been moved.'); } /** * @} End of "addtogroup hooks". */ /** * Implements hook_requirements(). */ function advagg_mod_requirements($phase) { $requirements = array(); // Ensure translations don't break at install time. $t = get_t(); // If not at runtime, return here. if ($phase !== 'runtime') { return $requirements; } // Check version. $lib_name = 'loadCSS'; $module_name = 'advagg_mod'; list($description, $info) = advagg_get_version_description($lib_name, $module_name); if (!empty($description)) { $requirements["{$module_name}_{$lib_name}_updates"] = array( 'title' => $t('@module_name', array('@module_name' => $info['name'])), 'severity' => REQUIREMENT_WARNING, 'value' => $t('The @name library needs to be updated.', array('@name' => $lib_name)), 'description' => $description, ); } return $requirements; }