Skip to content

Commit

Permalink
More fixes for spitcast
Browse files Browse the repository at this point in the history
  • Loading branch information
baldwin committed May 11, 2012
1 parent c9bcaef commit 120d4d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sites/default/modules/surf/surf.module
Expand Up @@ -103,9 +103,9 @@ function surf_block_view($delta = '') {

if (isset($terms) && count($terms) && $terms != FALSE) {
foreach ($terms as $term) {
$county_code = field_get_items('taxonomy_term', $term, 'spitcast_county_code');
$county_code = field_get_items('taxonomy_term', $term, 'field_spitcast_county_code');
$value = field_view_value('taxonomy_term', $term, 'field_spitcast_county_code', $county_code[0]);
$reports = surf_report_by_county($value);
$reports = surf_report_by_county($value['#markup']);
$items = array();
foreach ($reports as $report) {
$items[] = $report->spot_name . ': ' . $report->minShape_full . ' ' . $report->minSize . '-' . $report->maxSize . ' ft';
Expand Down Expand Up @@ -419,4 +419,4 @@ function surf_report_by_county($county_name) {
$report = json_decode($data);
}
return $report;
}
}

0 comments on commit 120d4d9

Please sign in to comment.