You are here

function nodeviewcount_admin_settings_form_submit in Node view count 7

Same name and namespace in other branches
  1. 7.3 includes/pages/nodeviewcount.admin.inc \nodeviewcount_admin_settings_form_submit()
  2. 7.2 includes/pages/nodeviewcount.admin.inc \nodeviewcount_admin_settings_form_submit()
1 string reference to 'nodeviewcount_admin_settings_form_submit'
nodeviewcount_admin_settings_form in includes/pages/nodeviewcount.admin.inc
Nodeviewcount admin form.

File

includes/pages/nodeviewcount.admin.inc, line 103

Code

function nodeviewcount_admin_settings_form_submit($form, &$form_state) {
  $values = $form_state['values'];
  $couting_user_roles = $values['nodeviewcount_user_roles'];
  foreach ($couting_user_roles as $key => $couting_user_role) {
    if ($couting_user_role) {
      $form_state['values']['nodeviewcount_excluded_user_roles'][$key] = 0;
    }
  }
}