albert-m
1/30/2016 - 11:24 PM

Добавление дополнительных режимов просмотра нод в Drupal 7

Добавление дополнительных режимов просмотра нод в Drupal 7

<?php

function di_view_modes_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes']['teaser_front'] = array(
    'label' => t('Teaser front'),
    'custom settings' => TRUE,
  );
}
name = DI view modes
description = Дополнительные режимы просмотров
package = Core
version = VERSION
core = 7.x