tablesort_init

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

includes/tablesort.inc, строка 14

Версии
5 – 6
tablesort_init($header)

Initialize the table sort context.

▾ 3 функции вызывают tablesort_init()

tablesort_sql in includes/tablesort.inc
Создает сортировочную часть SQL запроса.
template_preprocess_forum_topic_list in modules/forum/forum.module
Preprocess variables to format the topic listing.
theme_table in includes/theme.inc
Возвращает темизированную таблицу.

Код

<?php
function tablesort_init($header) {
  $ts = tablesort_get_order($header);
  $ts['sort'] = tablesort_get_sort($header);
  $ts['query_string'] = tablesort_get_querystring();
  return $ts;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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