You are here

function _pagerer_resolve_link_data in Pagerer 7

Helper to convert data returned from theme_pager_xxxx() calls.

Tao based-themes override Drupal core theme_pager_xxxx() calls and return an array that can be used by theme_links(), instead of HTML markup. In this case the input is themed and HTML returned.

Parameters

string|array $link: result of theme_pager_xxxx() call

Return value

string HTML markup

2 calls to _pagerer_resolve_link_data()
_pagerer_itemize_link in ./pagerer.module
Return link/button to first/previous/next/last element in the pager.
_pagerer_itemize_page_links in ./pagerer.module
Return rendered items representing the links to 'page' elements in the pager.

File

./pagerer.module, line 2151
Pagerer

Code

function _pagerer_resolve_link_data($link) {
  if (is_array($link)) {
    if (isset($link['title']) and isset($link['href'])) {
      $link = l($link['title'], $link['href'], $link);
    }
  }
  return $link;
}