print pdf

- set available print links for our view modes
- hide flags from print

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2013-01-15 15:57:54 +01:00
parent a6f0f199b5
commit fc0253d9c2
2 changed files with 9 additions and 5 deletions

View File

@ -130,10 +130,10 @@ function materio_flag_block_info() {
'cache' => DRUPAL_NO_CACHE
);
$blocks['materio_flag_mylists_nav'] = array(
'info' => t('My Materio flag lists navigation'),
'cache' => DRUPAL_NO_CACHE
);
$blocks['materio_flag_mylists_nav'] = array(
'info' => t('My Materio flag lists navigation'),
'cache' => DRUPAL_NO_CACHE
);
return $blocks;
}
@ -243,7 +243,7 @@ function materio_flag_entity_info_alter(&$entity_info) {
*/
function materio_flag_entity_view($entity, $type, $view_mode, $langcode) {
if($type == 'node'){
if(user_access('create flag lists')){
if(user_access('create flag lists') && $view_mode != 'print'){
$entity->content['flaglistslinks'] = materio_flag_get_entity_links($entity, $type, $view_mode);

View File

@ -223,8 +223,12 @@ function materio_search_api_entity_info_alter(&$entity_info) {
*/
function materio_search_api_node_view($node, $view_mode, $langcode) {
if (in_array($view_mode, array('cardsmall','cardmedium', 'cardbig', 'cardfull'))) {
# PRINT 7.1
print_node_view($node, 'full');
print_pdf_node_view($node, 'full');
# PRINT 7.2-beta
//print_ui_node_view($node, 'full');
// dsm($node, 'node');
}
}