You are here

function getdirections_theme in Get Directions 7.3

Same name and namespace in other branches
  1. 6.2 getdirections.theme.inc \getdirections_theme()
  2. 6 getdirections.theme.inc \getdirections_theme()
  3. 7.2 getdirections.module \getdirections_theme()

Implements hook_theme().

This lets us tell Drupal about our theme functions and their variables.

File

./getdirections.module, line 3063
Fetches google map directions.

Code

function getdirections_theme() {
  return array(
    'getdirections_show' => array(
      'variables' => array(
        'form' => NULL,
        'mapid' => '',
        'width' => '',
        'height' => '',
        'entity_id' => 0,
        'entity_type' => '',
        'lid' => 0,
        'type' => '',
      ),
    ),
    'getdirections_show_locations' => array(
      'variables' => array(
        'mapid' => '',
        'width' => '',
        'height' => '',
        'fromlocs' => '',
        'tolocs' => '',
      ),
    ),
    'getdirections_show_locations_via' => array(
      'variables' => array(
        'mapid' => '',
        'width' => '',
        'height' => '',
        'locs' => NULL,
      ),
    ),
    'getdirections_direction_form' => array(
      'render element' => 'form',
    ),
    'getdirections_box' => array(
      'variables' => array(
        'content' => NULL,
      ),
      'template' => 'getdirections_box',
    ),
    'getdirections_loadaddress' => array(
      'variables' => array(
        'location' => array(),
        'addcountry' => FALSE,
      ),
    ),
    'getdirections_addressfield_loadaddress' => array(
      'variables' => array(
        'address' => array(),
        'addcountry' => FALSE,
      ),
    ),
    'getdirections_addressfield_convert' => array(
      'variables' => array(
        'address' => array(),
      ),
    ),
    'getdirections_settings_form' => array(
      'render element' => 'form',
    ),
  );
}