public function FrxBlockEditor::configValidate in Forena Reports 7.4
Use the classes validate method to validate the block.
Parameters
$builder:
$config:
Return value
multitype:
File
- ./
FrxBlockEditor.inc, line 306
Class
Code
public function configValidate($builder, &$config) {
$this
->getBuilders();
$errors = array();
if (isset($this->builders[$builder])) {
$b = $this->builders[$builder];
if (method_exists($b, 'configValidate')) {
$errors = $b
->configValidate($config);
}
if ($errors) {
foreach ($errors as $name => $error) {
form_set_error($name, $error);
}
}
}
return $errors;
}