Hello everyone.

I'm looking for a way to edit the stuff between tags. I know, there is a way to do that directly in page.tpl, to create own header and just use strings from original, but im looking for part which generate the header. Can anyone help me to find it?

Thanks!

Comments

steveadamo’s picture

are you looking for this? its the drupal_final_markup function available from the /includes/common.inc file...

/**
 * Make any final alterations to the rendered xhtml.
 */
function drupal_final_markup($content) {
  // Make sure that the charset is always specified as the first element of the
  // head region to prevent encoding-based attacks.
  return preg_replace('/<head[^>]*>/i', "\$0\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />", $content, 1);
}
V I R U S’s picture

Looks good, but how to create a custom in V7? I'm trying to hide default tags, but withouwt effort... I's always there...

Any help?