You are here

function theme_metatag in Metatag 7

Theme callback for a normal meta tag.

The format is: <meta name="[name]" content="[value]" />

2 theme calls to theme_metatag()
DrupalDefaultMetaTag::getElement in ./metatag.inc
Get the HTML tag for this meta tag.
DrupalMaskIconMetaTag::getElement in metatag_favicons/metatag_favicons.mask-icon.class.inc
Get the HTML tag for this meta tag.

File

./metatag.theme.inc, line 14
Theme callbacks for the metatag module.

Code

function theme_metatag($variables) {
  $element =& $variables['element'];
  $args = array(
    '#name' => 'name',
    '#value' => 'content',
  );
  element_set_attributes($element, $args);
  unset($element['#value']);
  return theme('html_tag', $variables);
}