From 731cc423abd3af9c6be6125a655190cb76150cb9 Mon Sep 17 00:00:00 2001 From: Bryan Hirsch Date: Thu, 3 Apr 2014 11:48:52 -0400 Subject: [PATCH] Added documentation for special 'year' and 'categories' fields. modified: choropleth.inc modified: choropleth.module --- choropleth.inc | 12 +++++++----- choropleth.module | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/choropleth.inc b/choropleth.inc index 59aa1c2..f68b8e8 100644 --- a/choropleth.inc +++ b/choropleth.inc @@ -166,11 +166,13 @@ function choropleth_help_text() { '1' => array( 'data' => 'Special columns: If the following columns are present in your data then they will be used to build the choropleth map:', 'children' => array( - '0' => array('data' => 'state OR states - ' . t('Will trigger a state-by-state choropleth map using the overlay regions for each state.')), - '1' => array('data' => 'popup text - ' . t('Will display this text in a pop up bubble when a region is clicked.')), - '2' => array('data' => 'popup link - ' . t('Will display a clickable link to the url provided. Example:') . ' http://some-website.com'), - '3' => array('data' => 'popup link text - ' . t('Will use this text as the visible portion of the link if provided. Example:') . ' ' . t('Read More') . ''), - '4' => array('data' => 'latitude (lat) AND longitude (lon)- ' . $geolocation_text . ' ' . t("Both lat and lon or latitude and longitude columns need to be present.")), + array('data' => 'state OR states - ' . t('Will trigger a state-by-state choropleth map using the overlay regions for each state.')), + array('data' => 'year - ' . t("Enable users to select from a dropdown list of available years' data to view on the map.")), + array('data' => 'categories - ' . t('Enable users to filter data for a particular category.')), + array('data' => 'popup text - ' . t('Will display this text in a pop up bubble when a region is clicked.')), + array('data' => 'popup link - ' . t('Will display a clickable link to the url provided. Example:') . ' http://some-website.com'), + array('data' => 'popup link text - ' . t('Will use this text as the visible portion of the link if provided. Example:') . ' ' . t('Read More') . ''), + array('data' => 'latitude (lat) AND longitude (lon)- ' . $geolocation_text . ' ' . t("Both lat and lon or latitude and longitude columns need to be present.")), ), ), diff --git a/choropleth.module b/choropleth.module index de1d1f4..9d95c6c 100644 --- a/choropleth.module +++ b/choropleth.module @@ -257,7 +257,7 @@ function choropleth_field_widget_recline_widget_form_alter(&$element, &$form_sta require_once 'choropleth.inc'; drupal_add_js('misc/collapse.js'); $collapsible_item = array('element' => array()); - $collapsible_item['element']['#title'] = "Choropleth Map Help"; + $collapsible_item['element']['#title'] = t("State by state (choropleth) map help"); $collapsible_item['element']['#description'] = choropleth_help_text(); $collapsible_item['element']['#attributes']['class'][] = 'collapsible'; $collapsible_item['element']['#attributes']['class'][] = 'collapsed';