drupal_attributes

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

includes/common.inc, строка 1491

Версии
5 – 6
drupal_attributes($attributes = array())

Форматирует строку с атрибутами для вставки в HTML тэг.

Параметры

$attributes Ассоциативный массив HTML атрибутов.

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

Cтрока, готовая для вставки в HTML тэг.

▾ 23 функции вызывают drupal_attributes()

drupal_add_link in includes/common.inc
Добавляет тег в HEAD страницы.
format_xml_elements in includes/common.inc
Format XML elements.
l in includes/common.inc
Оформляет ссылки.
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
template_preprocess_user_profile_category in modules/user/user.pages.inc
Process variables for user-profile-category.tpl.php.
template_preprocess_user_profile_item in modules/user/user.pages.inc
Process variables for user-profile-item.tpl.php.
theme_button in includes/form.inc
Форматирует кнопку для формы.
theme_checkbox in includes/form.inc
Темизирует чекбокс.
theme_fieldset in includes/form.inc
Форматирует группу элементов формы
theme_file in includes/form.inc
Форматирует поле загрузки файла.
theme_form in includes/form.inc
Темизирует форму.
theme_hidden in includes/form.inc
Форматирует скрытое поле формы.
theme_image in includes/theme.inc
Возвращает темизированную картинку.
theme_image_button in includes/form.inc
Темизирует кнопку-картинку формы.
theme_item_list in includes/theme.inc
Возвращает темизированный список.
theme_links in includes/theme.inc
Возвращает темизированный набор ссылок.
theme_password in includes/form.inc
Форматирует поле ввода пароля.
theme_radio in includes/form.inc
Форматирует одиночный переключатель (радио-кнопку) для их группы.
theme_select in includes/form.inc
Format a dropdown menu or scrolling selection box.
theme_table in includes/theme.inc
Возвращает темизированную таблицу.
theme_textarea in includes/form.inc
Форматирует многострочное текстовое поле ввода для формы.
theme_textfield in includes/form.inc
Форматирует однострочное текстовое поле ввода.
_theme_table_cell in includes/theme.inc

Код

<?php
function drupal_attributes($attributes = array()) {
  if (is_array($attributes)) {
    $t = '';
    foreach ($attributes as $key => $value) {
      $t .= " $key=".'"'. check_plain($value) .'"';
    }
    return $t;
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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