You are here

function cumulus_admin_settings in Cumulus 7

Same name and namespace in other branches
  1. 6 cumulus.module \cumulus_admin_settings()

Implements hook_settings().

1 string reference to 'cumulus_admin_settings'
_cumulus_menu in ./cumulus.admin.inc
Implements hook_menu().

File

./cumulus.module, line 234
The brain of Cumulus.

Code

function cumulus_admin_settings($form, &$form_state) {
  $form['settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Clear the Cumulus cache'),
    '#description' => t('If you see older terms, or are unable to see terms from newly added vocabularies, try clearing the cache.<br />This will only clear the Cumulus related data from the cache. It will not clear the full Drupal cache.'),
  );
  $form['settings']['clear_cache'] = array(
    '#type' => 'submit',
    '#value' => t('Click to clear'),
    '#submit' => array(
      'cumulus_clear_cache',
    ),
  );
  return system_settings_form($form);
}