You are here

function bynder_form_submit in Bynder 7

Admin form submit, force reloading derivatives the first time we save the form.

1 string reference to 'bynder_form_submit'
bynder_form in includes/bynder.admin.inc
Callback for /admin/configure/media/bynder.

File

includes/bynder.admin.inc, line 320

Code

function bynder_form_submit($form, &$form_state) {

  // If this is the first time we're configuring credentials also reload
  // information about derivatives.
  if (bynder_form_updated_api_settings($form_state['values'])) {
    bynder_batch_reload_derivatives();
  }
  cache_clear_all('*', 'cache_bynder', true);
}