You are here

public function yamaps_views_plugin_style_default_map::validate in Yandex.Maps 7

Validates views style form.

Return value

array Errors list.

Overrides views_plugin_style::validate

File

modules/yamaps_views/handlers/yamaps_views_plugin_style_default_map.inc, line 333
Class yamaps_views_plugin_style_default_map.

Class

yamaps_views_plugin_style_default_map
Class defines Yandex Maps style plugin handler.

Code

public function validate() {
  $errors = parent::validate();

  // Checking of existence of pager settings.
  if ($this->display->handler
    ->use_pager()) {
    $showed =& drupal_static(__FUNCTION__, FALSE);
    if (!$showed) {
      $errors[] = t('The Yandex Maps style cannot be used with a pager. Disable the "Use pager" option for this display.');
      $showed = TRUE;
    }
  }
  return $errors;
}