Господа, нужна помощь
Есть модуль metatag, который в html.tpl.php через <?php print $head; ?> выводит следующие:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortlink" href="http://" />
<link rel="shortcut icon" href="http://" type="image/vnd.microsoft.icon" />
<link rel="canonical" href="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="abstract" content="" />
<meta name="generator" content="Drupal 7 (http://drupal.org)" />
<link rel="shortlink" href="http://" />
<link rel="shortcut icon" href="http://" type="image/vnd.microsoft.icon" />
<link rel="canonical" href="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="abstract" content="" />
<meta name="generator" content="Drupal 7 (http://drupal.org)" />
из всего этого нужно вывести только
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="description" content="" />
Как это сделать?
Комментарии
Как определить что содержит массив $head_elements ?
Получилось следующие:
unset($head_elements['metatag_generator']);
unset($head_elements['metatag_shortlink']);
unset($head_elements['metatag_canonical']);
unset($head_elements['system_meta_content_type']);
}
favicon отключил в настройках темы (у меня рабочий залит в корень)