You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -178,38 +178,26 @@ function gist_filter_config_form($form, &$form_state) {
178
178
$form['#config'] = $config_file;
179
179
$config = config($config_file);
180
180
181
-
// Container for cache settings.
182
-
$cache_scenarios = array(
183
-
t("A gist is embedded using the <strong>code</strong> display method."),
184
-
t("A gist is embedded using the <strong>embed</strong> display method, and the site is set to display using the <strong>code</strong> method if Javascript is disabled."),
185
-
);
186
-
$description = array(
187
-
'<p>' . t("Gist Filter keeps gists saved in the cache if they haven't changed at source. Not only does this help pages with gists on to load faster, but it also reduces the risk of your site exceeding your GitHub API rate limit.") . '</p>',
188
-
'<p>' . t("Gists are saved in the cache in the following scenarios:") . '</p>',
'<p>' . t("Once saved in the cache, a gist by default remains in the cache. If the gist is updated, the cached gist will be updated when the page cache is next cleared.") . '</p>',
191
-
'<p>' . t("If the setting below is enabled, then the gists cache will be cleared when running 'Flush all caches' or 'Page and else'. Otherwise, the gists cache can be cleared by selecting 'Gists' from the 'Flush all caches' submenu or using the button below.") . '</p>',
192
-
);
193
-
$description = implode('', $description);
194
-
$form['cache'] = array(
181
+
// Container for general settings.
182
+
$form['general'] = array(
195
183
'#type' => 'details',
196
-
'#summary' => t('Cache'),
197
-
'#details' => $description,
184
+
'#summary' => t('General'),
185
+
'#details' => t("Gist Filter enables you easily embed a gist anywhere in a filtered text field."),
198
186
'#open' => TRUE,
199
187
);
200
188
201
-
$form['cache']['clear'] = array(
202
-
'#type' => 'submit',
203
-
'#value' => t('Clear gists cache'),
204
-
'#submit' => array('_cache_gists_clear_submit'),
205
-
);
206
-
207
-
// Configure whether or not gist cache is cleared when flushing all caches.
208
-
$form['cache']['cache_clear_with_all'] = array(
209
-
'#type' => 'checkbox',
210
-
'#title' => "Clear the gist cache when flushing all caches",
211
-
'#description' => t("If you have a lot of gists throughout the site displayed as 'code' (or 'embed' with 'code' when Javascript is disabled) and those gists do not change regularly, then disabling the cache clear can avoid you breaching your GitHub API rate limit."),
t("A gist is embedded using the <strong>code</strong> display method."),
275
+
t("A gist is embedded using the <strong>embed</strong> display method, and the site is set to display using the <strong>code</strong> method if Javascript is disabled."),
276
+
);
277
+
$description = array(
278
+
'<p>' . t("Gist Filter keeps gists saved in the cache if they haven't changed at source. Not only does this help pages with gists on to load faster, but it also reduces the risk of your site exceeding your GitHub API rate limit.") . '</p>',
279
+
'<p>' . t("Gists are saved in the cache in the following scenarios:") . '</p>',
'<p>' . t("Once saved in the cache, a gist by default remains in the cache. If the gist is updated, the cached gist will be updated when the page cache is next cleared.") . '</p>',
282
+
'<p>' . t("If the setting below is enabled, then the gists cache will be cleared when running 'Flush all caches' or 'Page and else'. Otherwise, the gists cache can be cleared by selecting 'Gists' from the 'Flush all caches' submenu or using the button below.") . '</p>',
283
+
);
284
+
$description = implode('', $description);
285
+
$form['cache'] = array(
286
+
'#type' => 'details',
287
+
'#summary' => t('Cache'),
288
+
'#details' => $description,
289
+
'#open' => TRUE,
290
+
);
291
+
292
+
$form['cache']['clear'] = array(
293
+
'#type' => 'submit',
294
+
'#value' => t('Clear gists cache'),
295
+
'#submit' => array('_cache_gists_clear_submit'),
296
+
'#description' => t("Don't forget to save any setting changes before clearing the cache."),
297
+
);
298
+
299
+
// Configure whether or not gist cache is cleared when flushing all caches.
300
+
$form['cache']['cache_clear_with_all'] = array(
301
+
'#type' => 'checkbox',
302
+
'#title' => "Clear the gist cache when flushing all caches",
303
+
'#description' => t("If you have a lot of gists throughout the site displayed as 'code' (or 'embed' with 'code' when Javascript is disabled) and those gists do not change regularly, then disabling the cache clear can avoid you breaching your GitHub API rate limit."),
0 commit comments