You are here

function sheetnode_import_template_validate in Sheetnode 6

Same name and namespace in other branches
  1. 5 sheetnode.module \sheetnode_import_template_validate()
  2. 7.2 sheetnode.module \sheetnode_import_template_validate()
  3. 7 sheetnode.module \sheetnode_import_template_validate()

Validate function for sheetnode_import_template form.

File

./sheetnode.module, line 512

Code

function sheetnode_import_template_validate($form, &$form_state) {
  if (!$form_state['values']['template']) {
    form_set_error('template', t('Please select a template.'));
  }
}