Permalink
Browse files

More fixes for spitcast

  • Loading branch information...
1 parent c9bcaef commit 120d4d92ddcaec42d6b36f773e5215c918595402 baldwin committed May 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 sites/default/modules/surf/surf.module
View
6 sites/default/modules/surf/surf.module
@@ -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';
@@ -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.