Remove Meta Tag Generator

论坛: 
Using 7.0-beta3 with default setting. Want to remove following line.
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />

How can I remove it?

Comments

Wow just saw that meta tag, not sure why they are forcing users to have a generator tag. I'll be removing that for sure.

It's in includes/common.inc line 320-328

Here's what I did, not sure if it's the correct way but it worked.

removed these two lines by putting //

//      'name' => 'Generator',
//      'content' => 'Drupal ' . $version . ' (http://drupal.org)',

And then removed ['#attributes']['content'] from this line.

  $elements['system_meta_generator']['#attached']['drupal_add_http_header'][] = array('X-Generator', $elements['system_meta_generator']['#attributes']['content']);

© 2007-2014 深圳达盛企业建站公司 |企业建站、建站公司、高端网站开发

用户登录