template_preprocess_forum_submitted

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

modules/forum/forum.module, строка 912

Версии
6
template_preprocess_forum_submitted(&$variables)

Process variables to format submission info for display in the forum list and topic list.

$variables will contain: $topic

See also

forum-submitted.tpl.php

@see theme_forum_submitted()

Код

<?php
function template_preprocess_forum_submitted(&$variables) {
  $variables['author'] = isset($variables['topic']->uid) ? theme('username', $variables['topic']) : '';
  $variables['time'] = isset($variables['topic']->timestamp) ? format_interval(time() - $variables['topic']->timestamp) : '';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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