Alexander Mylnikov

18Nov/110

D7 – Remove Meta Tag Generator

To delete next line <meta name="Generator" content="Drupal 7 (http://drupal.org)" /> It's in includes/common.inc line 320-328 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']);
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.