You are here

function styled_google_map_theme in Styled Google Map 8.2

Same name and namespace in other branches
  1. 8 styled_google_map.module \styled_google_map_theme()
  2. 7.2 styled_google_map.module \styled_google_map_theme()
  3. 7 styled_google_map.module \styled_google_map_theme()

Implements hook_theme().

File

./styled_google_map.module, line 18
Contains all hooks and functions for the Styled Google Map module.

Code

function styled_google_map_theme() {
  $themes['styled_google_map'] = [
    'variables' => [
      'location' => NULL,
      'settings' => [],
      'entity' => NULL,
      'gid' => NULL,
      'directions_form' => NULL,
      'steps' => FALSE,
    ],
  ];
  $themes['styled_google_map_directions'] = [
    'variables' => [
      'settings' => [
        'enabled' => FALSE,
        'type' => 'DRIVING',
        'steps' => FALSE,
      ],
      'id' => '',
    ],
  ];
  return $themes;
}