You are here

function context_groups_theme_suggestions_context_groups in Context groups 8

Same name and namespace in other branches
  1. 8.2 context_groups.module \context_groups_theme_suggestions_context_groups()

Implements hook_theme_suggestions_HOOK().

File

./context_groups.module, line 189
Hooks and helper functions.

Code

function context_groups_theme_suggestions_context_groups(array $variables) {
  $suggestions[] = 'context_groups__' . $variables['element']['#context_id'];
  $suggestions[] = 'context_groups__' . $variables['element']['#context_group'];
  $suggestions[] = 'context_groups__' . $variables['element']['#context_id'] . '__' . $variables['element']['#context_group'];
  return $suggestions;
}