Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Added documentation for special 'year' and 'categories' fields.
Browse files Browse the repository at this point in the history
	modified:   choropleth.inc
	modified:   choropleth.module
  • Loading branch information
Bryan Hirsch committed Apr 3, 2014
1 parent 3b6f3fc commit 731cc42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions choropleth.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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:') . ' <em>http://some-website.com</em>'),
'3' => array('data' => 'popup link text - ' . t('Will use this text as the visible portion of the link if provided. Example:') . ' <em>' . t('Read More') . '</em>'),
'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:') . ' <em>http://some-website.com</em>'),
array('data' => 'popup link text - ' . t('Will use this text as the visible portion of the link if provided. Example:') . ' <em>' . t('Read More') . '</em>'),
array('data' => 'latitude (lat) AND longitude (lon)- ' . $geolocation_text . ' ' . t("Both lat and lon or latitude and longitude columns need to be present.")),
),
),

Expand Down
2 changes: 1 addition & 1 deletion choropleth.module
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 731cc42

Please sign in to comment.