Добавляем метатеги rel="author" в информацию о публикации материала

Тэги: 

Используем hook_preprocess_node и hook_preprocess_username:

  1. MYTHEME_preprocess_node(&$variables) {
  2.  
  3. $variables['name'] = theme('username', array(
  4. 'account' => $variables['node'],
  5. 'authorship' => TRUE,
  6. 'link_attributes' => array('rel' => 'author'),
  7. ));
  8. }
  9.  
  10. MYTHEME_preprocess_username(&$variables) {
  11. if (!empty($variables['authorship'])) {
  12. $variables['link_attributes']['rel'][] = 'author';
  13. }
  14. }