theme_search_page

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/search/search.module, строка 1261

Версии
5
theme_search_page($results, $type)

Format the result page of a search query.

Modules may implement hook_search_page() in order to override this default function to display search results. In that case it is expected they provide their own themeable functions.

Параметры

$results All search result as returned by hook_search().

$type The type of item found, such as 'user' or 'node'.

Связанные темы

▾ 1 функция вызывает theme_search_page()

search_data in modules/search/search.module
Perform a standard search on the given keys, and return the formatted results.

Код

<?php
function theme_search_page($results, $type) {
  $output = '<dl class="search-results">';

  foreach ($results as $entry) {
    $output .= theme('search_item', $entry, $type);
  }
  $output .= '</dl>';
  $output .= theme('pager', NULL, 10, 0);

  return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему