function views_plugin_display::render_more_link

cis7 views_plugin_display.inc views_plugin_display::render_more_link()
cle7 views_plugin_display.inc views_plugin_display::render_more_link()
elmsmedia7 views_plugin_display.inc views_plugin_display::render_more_link()
icor7 views_plugin_display.inc views_plugin_display::render_more_link()
meedjum_blog7 views_plugin_display.inc views_plugin_display::render_more_link()
mooc7 views_plugin_display.inc views_plugin_display::render_more_link()

Render the 'more' link

File

sites/all/modules/ulmus/views/plugins/views_plugin_display.inc, line 2541
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function render_more_link() {
  if ($this->use_more() && ($this->use_more_always() || (!empty($this->view->query->pager) && $this->view->query->pager->has_more_records()))) {
    $path = $this->get_path();

    if ($this->get_option('link_display') == 'custom_url' && $override_path = $this->get_option('link_url')) {
      $tokens = $this->get_arguments_tokens();
      $path = strtr($override_path, $tokens);
    }

    if ($path) {
      if (empty($override_path)) {
        $path = $this->view->get_url(NULL, $path);
      }
      $url_options = array();
      if (!empty($this->view->exposed_raw_input)) {
        $url_options['query'] = $this->view->exposed_raw_input;
      }
      $theme = views_theme_functions('views_more', $this->view, $this->display);
      $path = check_url(url($path, $url_options));

      return theme($theme, array('more_url' => $path, 'link_text' => check_plain($this->use_more_text()), 'view' => $this->view));
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.