theme_placeholder

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

includes/theme.inc, строка 1100

Версии
5 – 6
theme_placeholder($text)

Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().

Параметры

$text The text to format (plain-text).

Возвращаемое значение

The formatted text (html).

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

▾ 6 функции вызывают theme_placeholder()

node_revision_overview in modules/node/node.pages.inc
Generate an overview table of older revisions of a node.
node_type_form in modules/node/content_types.inc
Generates the node type editing form.
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
t in includes/common.inc
Переводит строку на заданный язык или язык страницы.
theme_update_report in modules/update/update.report.inc
Темизирует сообщение о состоянии модуля или темы.
_db_error_page in includes/database.inc
Вспомогательная функция для показа фатальных ошибок в базе данных.

Код

<?php
function theme_placeholder($text) {
  return '<em>'. check_plain($text) .'</em>';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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