You are here

function user_badges_settings_form_submit in User Badges 5

Same name and namespace in other branches
  1. 6.2 user_badges.admin.inc \user_badges_settings_form_submit()
  2. 6 user_badges.admin.inc \user_badges_settings_form_submit()
  3. 7 user_badges.admin.inc \user_badges_settings_form_submit()
  4. 7.2 user_badges.admin.inc \user_badges_settings_form_submit()
  5. 7.3 user_badges.admin.inc \user_badges_settings_form_submit()

File

./user_badges.module, line 979
@brief User Badges module file

Code

function user_badges_settings_form_submit($form_id, $form_values) {
  variable_set('user_badges_showone', $form_values['showone']);
  variable_set('user_badges_showblocked', $form_values['showblocked']);
  $message = ($form_values['showone'] ? t('Only the most highest-level user badge will be shown.') : t('All user badges will be shown.')) . ' ' . ($form_values['showblocked'] ? t('Blocked users only will have blocked
    user badge displayed.') : '');
  drupal_set_message($message);
}