Skip to content

Commit

Permalink
Coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Nov 10, 2022
1 parent f0a1648 commit cdbec82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gallery_tiler.module
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ function gallery_tiler_field_formatter_view($entity_type, $entity, $field, $inst
$always_loaded = $config->get('photoswipe_always_load_non_admin');

if (!$always_loaded) {
// Module photoswipe did no hook_library_info, so we load the files
// individually. But only if it's not always loaded anyway.
// Module photoswipe did no hook_library_info, so we load the
// files individually. But only if it's not always loaded anyway.
$ps_path = backdrop_get_path('module', 'photoswipe');
$element['#attached']['css'][] = $ps_path . '/library/photoswipe.css';
$element['#attached']['css'][] = $ps_path . '/library/default-skin/default-skin.css';
Expand All @@ -329,8 +329,8 @@ function gallery_tiler_field_formatter_view($entity_type, $entity, $field, $inst
'data' => array(
'photoswipe' => array(
'options' => $settings,
)
)
),
),
);
photoswipe_assets_loaded(TRUE);
}
Expand Down

0 comments on commit cdbec82

Please sign in to comment.