Add various advagg settings to the system_performance_settings form.
Related topics
1 call to advagg_admin_system_performance_settings_form()
- advagg_form_system_performance_settings_alter in ./
advagg.module - Implements hook_form_FORM_ID_alter().
File
-
./
advagg.admin.inc, line 1255
Code
function advagg_admin_system_performance_settings_form(&$form, $form_state) {
$msg = t('NOTE: If you wish to bypass aggregation for a set amount of time, you can go to the <a href="@operations">AdvAgg operations</a> page and press the "aggregation bypass cookie" button.', array(
'@operations' => url('admin/config/development/performance/advagg/operations'),
));
$msg .= ' ';
if (user_access('bypass advanced aggregation')) {
$msg .= t('You can also selectively bypass aggregation by adding <code>@code</code> to the URL of any page.', array(
'@code' => '?advagg=0',
));
}
else {
$msg .= t('You do not have the <a href="@permission">bypass advanced aggregation permission</a> so adding <code>@code</code> to the URL will not work at this time for you; either grant this permission to your user role or use the bypass cookie if you wish to selectively bypass aggregation.', array(
'@permission' => url('admin/people/permissions', array(
'fragment' => 'module-advagg',
)),
'@code' => '?advagg=0',
));
}
if (is_callable('omega_extension_enabled') && is_callable('omega_theme_get_setting') && omega_extension_enabled('development') && omega_theme_get_setting('omega_livereload', TRUE)) {
$msg .= ' ' . t('The omega theme is in development mode and livereload is also enabled. This setting combination disables CSS aggregation. If you wish to have CSS aggregation turned on, go to the <a href="@url">theme settings page</a>, select the Omega theme/subtheme and turn off LiveReload and/or turn off the Development extension.', array(
'@url' => url('admin/appearance/settings'),
));
}
$form['bandwidth_optimization']['advagg_note'] = array(
'#markup' => $msg,
);
}