You are here

function workspace_configure_form_validate in Workspace 5

Same name and namespace in other branches
  1. 6 workspace.module \workspace_configure_form_validate()
  2. 7 workspace.module \workspace_configure_form_validate()

File

./workspace.module, line 127
Presents a user-centric view of content.

Code

function workspace_configure_form_validate($form_id, $edit) {
  if (!is_numeric($edit['maxnodes'])) {
    form_set_error('maxnodes', t('Please enter a numeric value.'));
  }
  if (!is_numeric($edit['maxfilenames']) && !form_get_errors()) {
    form_set_error('maxfilenames', t('Please enter a numeric value.'));
  }
}