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