You are here

function flickrapi_oauth_clear_form_submit in Flickr API 7

Same name and namespace in other branches
  1. 7.2 flickrapi.admin.inc \flickrapi_oauth_clear_form_submit()

Form submit: deletes flickr credentials

File

./flickrapi.admin.inc, line 241
Admin settings form and OAuth authentication integration

Code

function flickrapi_oauth_clear_form_submit($form, &$form_state) {
  if (_flickrapi_oauth_clear()) {
    drupal_set_message(t('Flickr access token was deleted.'));
  }
  else {
    drupal_set_message(t('Flickr access token was not found.'), 'error');
  }
  $form_state['redirect'] = 'admin/config/media/flickrapi';
}