theme_pipes_location

Definition

theme_pipes_location($location = array())
pipes/pipes.module, line 286

Description

Theme a pipes location

Code

function theme_pipes_location($location = array()) {
  if (!empty($location)) {
    $output = $location['street'] . ' ' . $location['city'] . ' '$location['state'] . ' | ' . $location['phone'];
    $output .= '<br /><small>' . $location['distance'] . ' | ' . l(t('Get Map and Directions'), $location['map']) . '</small>';
    return $output;
  }
  else {
    return t('No location information provided');
  }
}