public function FeedsForenaBlockFetcher::sourceFormValidate in Forena Reports 7.5
Same name and namespace in other branches
- 7.3 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceFormValidate()
- 7.4 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceFormValidate()
File
- feeds/
FeedsForenaBlockFetcher.inc, line 73
Class
Code
public function sourceFormValidate(&$values) {
$values['source'] = trim($values['source']);
$block = @Frx::DataManager()
->loadBlock($values['source']);
if (!$block) {
form_set_error('feeds][FeedsForenaBlockFetcher][source', t('The specified block does not exist.'));
}
}