You are here

function votingapi_actions_admin_import_page_validate in Voting API 5

File

./votingapi_actions_ui.inc, line 138

Code

function votingapi_actions_admin_import_page_validate($form_id, &$form) {
  ob_start();
  eval($form['set']);
  ob_end_clean();
  if (is_array($sets)) {
    foreach ($sets as $name => $set) {
      if ($name) {
        $errors = _votingapi_validate_action_set($name, $set);
        foreach ($errors as $error) {
          form_set_error('', $error);
        }
      }
    }
  }
}