diff --git a/includes/common.inc b/includes/common.inc index c130227..0ce685e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7835,12 +7835,11 @@ function entity_prepare_view($entity_type, $entities, $langcode = NULL) { /** * Invoke hook_entity_view_mode_alter(). * - * If adding a new entity similar to nodes, comments or users, you should - * invoke this function during the ENTITY_build_content() or - * ENTITY_view_multiple() phases of rendering to allow other modules to alter - * the view mode during this phase. This function needs to be called before - * field_attach_prepare_view() to ensure that the correct content is - * loaded by field API. + * If adding a new entity similar to nodes, comments or users, you should invoke + * this function during the ENTITY_build_content() or ENTITY_view_multiple() + * phases of rendering to allow other modules to alter the view mode during this + * phase. This function needs to be called before field_attach_prepare_view() to + * ensure that the correct content is loaded by field API. * * @param $entity_type * The type of entity, i.e. 'node', 'user'. @@ -7859,8 +7858,8 @@ function entity_view_mode_prepare($entity_type, $entities, $view_mode, $langcode $langcode = $GLOBALS['language_content']->language; } - // To ensure hooks are never run after field_attach_prepare_view() - // only process items without the entity_view_prepared flag. + // To ensure hooks are never run after field_attach_prepare_view() only + // process items without the entity_view_prepared flag. $entities_by_view_mode = array(); foreach ($entities as $id => $entity) { $entity_view_mode = $view_mode;