You are here

function entity_print_entity_extra_field_info_alter in Entity Print 8

Implements hook_entity_extra_field_info_alter().

File

./entity_print.module, line 34
Print any entity.

Code

function entity_print_entity_extra_field_info_alter(&$info) {
  foreach ($info as &$entity_info) {
    foreach ($entity_info as &$bundle_info) {
      $bundle_info['display']['entity_print_view'] = [
        'label' => t('Entity Print'),
        'description' => t('Provides a link to view the PDF version of the entity'),
        'weight' => 0,
        'visible' => FALSE,
      ];
    }
  }
}