You are here

function noreferrer_admin_submit in No Referrer 7

Admin settings submit handler.

1 string reference to 'noreferrer_admin_submit'
noreferrer_admin in ./noreferrer.admin.inc
Admin settings form.

File

./noreferrer.admin.inc, line 68
Admin settings callbacks for no referrer module.

Code

function noreferrer_admin_submit($form, &$form_state) {
  drupal_register_shutdown_function('noreferrer_flush_caches');
  if (variable_get('noreferrer_publish', FALSE)) {
    noreferrer_publish();
  }
  if ($url = variable_get('noreferrer_subscribe_url', '')) {
    noreferrer_subscribe($url);
  }
}