function theme_getdirections_show in Get Directions 6
Same name and namespace in other branches
- 6.2 getdirections.theme.inc \theme_getdirections_show()
- 7.3 getdirections.module \theme_getdirections_show()
- 7.2 getdirections.module \theme_getdirections_show()
Theme to use for when one or no locations are supplied.
1 theme call to theme_getdirections_show()
- getdirections_direction in ./
getdirections.module - Function to setup the map and form
File
- ./
getdirections.theme.inc, line 49 - getdirections module theming
Code
function theme_getdirections_show($form, $width, $height) {
$output = $form;
$header = array();
$rows[] = array(
array(
'data' => '<div id="getdirections_map_canvas" style="width: ' . $width . '; height: ' . $height . '" ></div>',
'valign' => 'top',
'align' => 'center',
'class' => 'getdirections-map',
),
array(
'data' => '<div id="getdirections_directions"></div>',
'valign' => 'top',
'align' => 'left',
'class' => 'getdirections-list',
),
);
$output .= '<div class="getdirections">' . theme('table', $header, $rows) . '</div>';
return $output;
}