You are here

public function FeedsForenaBlockFetcher::sourceFormValidate in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceFormValidate()
  2. 7.4 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceFormValidate()

File

feeds/FeedsForenaBlockFetcher.inc, line 72

Class

FeedsForenaBlockFetcher

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.'));
  }
}