Commit 0122e319 authored by pirog's avatar pirog Committed by jcnventura

Issue #1741612: Print View Mode for Field Collections.

parent 81966f6e
......@@ -233,6 +233,15 @@ function print_entity_info_alter(&$info) {
'custom settings' => FALSE,
),
);
// Add the 'Print' view mode for field_collections
if (module_exists('field_collection')) {
$info['field_collection_item']['view modes'] += array(
'print' => array(
'label' => t('Print'),
'custom settings' => FALSE,
),
);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment