You are here

function entity_print_entity_debug in Entity Print 7

A debug callback for styling up the PDF.

Parameters

string $entity_type: The entity type.

int $entity_id: The entity id.

1 string reference to 'entity_print_entity_debug'
entity_print_menu in ./entity_print.module
Implements hook_entity_print().

File

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

Code

function entity_print_entity_debug($entity_type, $entity_id) {
  if ($entities = entity_load($entity_type, array(
    $entity_id,
  ))) {
    $entity = reset($entities);
    print _entity_print_get_generated_html($entity_type, $entity);
  }
}