dashan 提交于 05-08-14 论坛: drupal 基础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']); 登录以发表评论
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']);