function theme_html_tag


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_html_tag($variables)
cle7 theme_html_tag($variables)
elmsmedia7 theme_html_tag($variables)
icor7 theme_html_tag($variables)
meedjum_blog7 theme_html_tag($variables)
mooc7 theme_html_tag($variables)

Returns HTML for a generic HTML tag with attributes.


$variables: An associative array containing:

  • element: An associative array describing the tag:

    • #tag: The tag name to output. Typical tags added to the HTML HEAD:

      • meta: To provide meta information, such as a page refresh.
      • link: To refer to stylesheets and other contextual information.
      • script: To load JavaScript.
    • #attributes: (optional) An array of HTML attributes to apply to the tag.
    • #value: (optional) A string containing tag content, such as inline CSS.
    • #value_prefix: (optional) A string to prepend to #value, e.g. a CDATA wrapper prefix.
    • #value_suffix: (optional) A string to append to #value, e.g. a CDATA wrapper suffix.

Related topics

1 theme call to theme_html_tag()
drupal_get_js in includes/
Returns a themed presentation of all JavaScript code for the current page.
15 string references to the theme hook from theme_html_tag()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

adaptivetheme_html_head_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
advagg_preprocess_html in sites/all/modules/ulmus/advagg/advagg.module
Implements hook_preprocess_html().
advagg_pre_render_scripts in sites/all/modules/ulmus/advagg/advagg.module
Callback for pre_render to add elements needed for JavaScript to be rendered.
devel_themer_catch_function in sites/all/modules/ulmus/devel_themer/devel_themer.module
Intercepts all theme calls (including templates), adds to template log, and dispatches to original theme function.
drupal_add_html_head in includes/
Adds output to the HEAD tag of the HTML page.

... See full list


includes/, line 2185
The theme system, which controls the output of Drupal.


function theme_html_tag($variables) {
  $element = $variables['element'];
  $attributes = isset($element['#attributes']) ? drupal_attributes($element['#attributes']) : '';
  if (!isset($element['#value'])) {
    return '<' . $element['#tag'] . $attributes . " />\n";
  else {
    $output = '<' . $element['#tag'] . $attributes . '>';
    if (isset($element['#value_prefix'])) {
      $output .= $element['#value_prefix'];
    $output .= $element['#value'];
    if (isset($element['#value_suffix'])) {
      $output .= $element['#value_suffix'];
    $output .= '</' . $element['#tag'] . ">\n";
    return $output;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.