You are here

function xbbcode_highlighter_setup_validate in Extensible BBCode 5

File

xbbcode_highlighter/xbbcode_highlighter.module, line 393

Code

function xbbcode_highlighter_setup_validate($form_id, $form) {
  if (!variable_get('xbbcode_highlighter_pear_highlighter', false) && (!$form['high'] || !file_exists($form['high'] . '/Text/Highlighter.php'))) {
    form_set_error('high', t("The Text_Highlighter library could not be found at this location."));
  }
  if (!variable_get('xbbcode_highlighter_pear_parser', false) && (!$form['xml'] || !file_exists($form['xml'] . '/XML/Parser.php'))) {
    form_set_error('xml', t("The XML_Parser library could not be found at this location."));
  }
}