You are here

function fb_admin_app_select_form_submit in Drupal for Facebook 7.4

1 string reference to 'fb_admin_app_select_form_submit'
fb_admin_app_select_form in ./fb.admin.inc

File

./fb.admin.inc, line 1390

Code

function fb_admin_app_select_form_submit($form, &$form_state) {
  $app_data = $form_state['values']['fb_app_data'];
  extract($form_state['fb']);

  // $params
  if ($app_data['client_id']) {
    variable_set($params['variable'], $app_data);
  }
  else {
    variable_del($params['variable']);
  }
  drupal_set_message(t('Recommended: <a href=!cache_url>clear all caches</a> after changing Facebook app settings.', array(
    '!cache_url' => url('admin/config/development/performance'),
  )), 'warning');
  drupal_set_message(t('The configuration options have been saved.'));
}