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

Spelling #3

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
8 changes: 4 additions & 4 deletions choropleth_dataset.module
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function choropleth_dataset_menu() {
$items['admin/config/choropleth_dataset'] = array(
'title' => 'Choropleth Dataset Configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array('cholopleth_dataset_settings_form'),
'page arguments' => array('choropleth_dataset_settings_form'),
'access arguments' => array('configure choropleth dataset'),
'file' => 'includes/choropleth_dataset.admin.inc',
);
Expand Down Expand Up @@ -164,7 +164,7 @@ function choropleth_dataset_permission() {
),
'configure choropleth dataset' => array(
'title' => t('Configure choropleth dataset settings'),
'description' => t('Grants access to cholopleth dataset configuration settings.'),
'description' => t('Grants access to choropleth dataset configuration settings.'),
),
);
}
Expand Down Expand Up @@ -245,7 +245,7 @@ function choropleth_dataset_process_page(&$variables) {
global $_choropleth_dataset_iframe_path_slug;
$current_path_slug = arg(0, current_path());
if ($_choropleth_dataset_iframe_path_slug === $current_path_slug) {
// It is an iframe, so clear out unecessary trimmings.
// It is an iframe, so clear out unnecessary trimmings.
unset($variables['breadcrumb']);
unset($variables['page']['header']);
unset($variables['page']['footer']);
Expand All @@ -262,7 +262,7 @@ function choropleth_dataset_preprocess_html(&$variables) {
global $_choropleth_dataset_iframe_path_slug;
$current_path_slug = arg(0, current_path());
if ($_choropleth_dataset_iframe_path_slug === $current_path_slug) {
// It is an iframe, so clear out unecessary trimmings.
// It is an iframe, so clear out unnecessary trimmings.
unset($variables['page']['header']);
unset($variables['page']['footer']);
unset($variables['page']['page_bottom']);
Expand Down
4 changes: 2 additions & 2 deletions includes/choropleth_dataset.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @ingroup forms
*/
function cholopleth_dataset_settings_form() {
function choropleth_dataset_settings_form() {
$form = array();

$form['embed_settings'] = array(
Expand All @@ -24,7 +24,7 @@ function cholopleth_dataset_settings_form() {
$form['embed_settings']['choropleth_embed_domain_description'] = array(
'#type' => 'item',
'#title' => t('Domain Settings'),
'#markup' => t('<p>By default, map embed codes will reference the domain you are currently on. However, some teams use custom subdomains for workflow and permssions purposes, like <em>http://dev.example.com</em>, <em>http://stage.example.com</em>, and <em>http://edit.example.com</em>. In these cases, including the subdomain in embed codes could result in accidentally embedding maps that are not publically visible.</p>
'#markup' => t('<p>By default, map embed codes will reference the domain you are currently on. However, some teams use custom subdomains for workflow and permissions purposes, like <em>http://dev.example.com</em>, <em>http://stage.example.com</em>, and <em>http://edit.example.com</em>. In these cases, including the subdomain in embed codes could result in accidentally embedding maps that are not publically visible.</p>
<p>To prevent this, you can specify your production domain below, and the embed codes will reference this domain regardless of the current environment.</p>'
),
);
Expand Down
2 changes: 1 addition & 1 deletion includes/choropleth_dataset.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function _choropleth_dataset_page_by_nid($nid = '') {
}

/**
* Page callback to render the chorpleth iframeable view from a dataset node id.
* Page callback to render the choropleth iframeable view from a dataset node id.
*
* @param int $nid
* The node id for a dataset node.
Expand Down
2 changes: 1 addition & 1 deletion static/recline.view.MultiDatasetChoroplethMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ this.recline.View = this.recline.View || {};
<div id="points-form" class="clearfix"> \
{{{filter_by_points}}} \
</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
2 changes: 1 addition & 1 deletion templates/choropleth-dataset-iframe.tpl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Template for the chororpleth map wrapper.
* Template for the choropleth map wrapper.
*
* Variables passed in from theme function:
* - $node - The fully loaded dataset node object.
Expand Down
2 changes: 1 addition & 1 deletion templates/choropleth-dataset-map-view.tpl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Template for the chororpleth map view.
* Template for the choropleth map view.
*
* Variables passed in from theme function:
* - $map_view_html = The base html for the map
Expand Down
2 changes: 1 addition & 1 deletion templates/choropleth-dataset-map-wrapper.tpl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Template for the chororpleth map wrapper.
* Template for the choropleth map wrapper.
*
* Variables passed in from theme function:
* - $node - The fully loaded dataset node object.
Expand Down
2 changes: 1 addition & 1 deletion templates/choropleth-dataset-page.tpl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Template for the chororpleth map wrapper.
* Template for the choropleth map wrapper.
*
* Variables passed in from theme function:
* - $node - The fully loaded dataset node object.
Expand Down
2 changes: 1 addition & 1 deletion templates/node__dataset__choropleth.tpl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Template for the node__dataset__chororpleth.
* Template for the node__dataset__choropleth.
*
* Variables passed from theme function:
* - NONE
Expand Down