Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Spelling #5

Open
wants to merge 3 commits into
base: 7.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions choropleth.install
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* Implements hook_install().
*/
function choropleth_install() {
choropleth_udpate_existing_fields();
choropleth_update_existing_fields();
}

/**
* Checks for current implementations of recline and adds additional columns.
*/
function choropleth_udpate_existing_fields() {
function choropleth_update_existing_fields() {
$fields = field_info_fields();
foreach ($fields as $field_name => $field) {
if ($field['type'] == 'recline_field' && $field['storage']['type'] == 'field_sql_storage') {
Expand Down Expand Up @@ -65,20 +65,20 @@ function choropleth_udpate_existing_fields() {
}

/**
* Add cholorpleth columns to existing recline field storage.
* Add choropleth columns to existing recline field storage.
*/
function choropleth_update_7001(&$sandbox) {
$ret = array();
choropleth_udpate_existing_fields();
choropleth_update_existing_fields();
return $ret;
}

/**
* Add cholorpleth color scale column to existing recline field storage.
* Add choropleth color scale column to existing recline field storage.
*/
function choropleth_update_7002(&$sandbox) {
$ret = array();
choropleth_udpate_existing_fields();
choropleth_update_existing_fields();
return $ret;
}

Expand All @@ -87,6 +87,6 @@ function choropleth_update_7002(&$sandbox) {
*/
function choropleth_update_7003(&$sandbox) {
$ret = array();
choropleth_udpate_existing_fields();
choropleth_update_existing_fields();
return $ret;
}
2 changes: 1 addition & 1 deletion choropleth.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
set_map_type('states');
set_map_label('State');
polygons = Drupal.settings.choropleth.statesData;
// Set to contigous USA.
// Set to contiguous USA.
location_default.lat = 51.25;
location_default.lon = -110;
location_default.zoom = 3;
Expand Down
2 changes: 1 addition & 1 deletion static/recline.view.ChoroplethMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ this.recline.View = this.recline.View || {};
{{{filter_by_category}}} \
{{{filter_by_year}}} \
</div> \
<input type="hidden" class="editor-id" value="chroropleth-map-1" /> \
<input type="hidden" class="editor-id" value="choropleth-map-1" /> \
</form> \
<label id="unit-of-measure"></label> \
<div id="color-scale" class="reference"></div> \
Expand Down