You are here

function flickrapi_form_flickrapi_admin_settings_alter in Flickr API 7.2

Same name and namespace in other branches
  1. 7 flickrapi.module \flickrapi_form_flickrapi_admin_settings_alter()

Implements hook_form_alter().

If the API key has not been validated yet, change the button text on the admin form.

File

./flickrapi.module, line 164
FlickAPI integration module.

Code

function flickrapi_form_flickrapi_admin_settings_alter(&$form, &$form_state) {
  if (!_flickrapi_is_authenticated()) {
    $form['actions']['submit']['#value'] = t('Authorize using OAuth');
  }
}