I get following notice when my entity doesn't have language included in it's settings on admin/structure/entity-type/photo/properties

Notice: Undefined index: in theme_views_view_galleria() (line 92 of dir/sites/all/modules/galleria/theme/theme.inc).

This issue can be related to https://drupal.org/node/1193940

#1 galleria-language-2039941-1.patch905 bytesa.milkovsky
Members fund testing for the Drupal project. Drupal Association Learn more


a.milkovsky’s picture

Issue summary: View changes
Status: Active » Needs review
905 bytes
a.milkovsky’s picture

As alternative, you can provide a custom theme function where you can fix language usage:

 * Implements hook_views_plugins_alter().
function MYMODULE_views_plugins_alter(&$plugins) {
  // Change galleria views theme for custom pre-processing.
  $plugins['style']['galleria']['theme'] = 'MYMODULE_views_view_galleria';
  $plugins['style']['galleria']['theme path'] = drupal_get_path('module', 'MYMODULE') . '/theme';

Theme file in MYMODULE :

 * Theme 'MYMODULE_views_view_galleria'.
function theme_MYMODULE_views_view_galleria($vars) {
  // Fixed version of theme_views_view_galleria().