You are here

function maestro_theme_registry_alter in Maestro 8.2

Same name and namespace in other branches
  1. 3.x maestro.module \maestro_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./maestro.module, line 755
Provides glue logic, hook implementation and core set process variable functions.

Code

function maestro_theme_registry_alter(&$theme_registry) {

  // We need to rely on the rest of what Views does for us as we're mimicing the table output
  // so we'll first tell the theme registry to have the same settings as the original views table.
  $theme_registry['maestro_views_view_table'] = $theme_registry['views_view_table'];

  // Now, we actually want to use our own template, which is inside of our Maestro module templates folder.
  $theme_registry['maestro_views_view_table']['template'] = 'maestro-views-view-table';
  $path = drupal_get_path('module', 'maestro');
  $theme_registry['maestro_views_view_table']['path'] = $path . '/templates';
}