personal note display for viewmode cardfull
This commit is contained in:
@@ -65,7 +65,7 @@ function materio_personalnotes_menu(){
|
||||
*/
|
||||
function materio_personalnotes_entity_view($entity, $type, $view_mode, $langcode) {
|
||||
// dsm($entity, 'entity');
|
||||
if($type == 'node' && $entity->type == "materiau"){
|
||||
if($type == 'node' && $entity->type == "materiau" && in_array($view_mode, array('cardmedium', 'cardbig', 'cardfull'))){
|
||||
if(user_access('create own personal notes') && $view_mode != 'print'){
|
||||
$entity->content['personalnotelink'] = materio_personalnotes_get_note_link($entity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user