You are here

function field_permissions_troubleshooting_form_submit in Field Permissions 6

Submit callback for the Field permissions troubleshooting form.

File

includes/admin.inc, line 398
Administrative interface for the Field Permissions module.

Code

function field_permissions_troubleshooting_form_submit($form, &$form_state) {
  $url = 'admin/content/types/field_permissions/troubleshooting';
  if ($form_state['values']['op'] != t('Reset')) {
    $url .= '/' . $form_state['values']['nid'] . '/' . $form_state['values']['field'];
    if (!empty($form_state['values']['uid'])) {
      $url .= '/' . $form_state['values']['uid'];
    }
  }
  $form_state['redirect'] = $url;
}