Skip to content

Instantly share code, notes, and snippets.

@orakili
orakili / financial.json
Last active August 29, 2015 14:21 — forked from jonnadams/financial.json
Financial Data Mapping with Update Icons
{
"fundingDocumentURL": "http://reliefweb.int/updates?advanced-search=(C226.C122)_(F4)_!(S1242)_!(S1741)_!(S1255)_!(PC254)_!(S4304)#content",
"dataSources": [
{
"dataItemTitle": "Iraq Strategic Response Plan 2015",
"dataSourceURL": "http://fts.unocha.org/reports/daily/OCHA_R32sum_A1097.PDF",
"clusters": {
"type": "request",
"source": "fts",
"path": "v1/cluster/appeal/1097.json",
diff --git markdown.php markdown.php
index ed79197..0cde939 100644
--- markdown.php
+++ markdown.php
@@ -761,6 +761,17 @@ class Markdown_Parser {
$url = $this->encodeAttribute($url);
+ // For some links like [xxx](/node/xxx), turn them into absolute ones
+ // so when they're contained in feeds, the W3C feed validator won't
diff --git includes/features.user.inc includes/features.user.inc
index c76455d..a11e078 100644
--- includes/features.user.inc
+++ includes/features.user.inc
@@ -26,12 +26,10 @@ function user_features_api() {
function user_permission_features_export($data, &$export, $module_name = '') {
$export['dependencies']['features'] = 'features';
- // Ensure the modules that provide the given permissions are included as dependencies.
+ // Ensure the given permissions exist.
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 379de71..761cc08 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1715,6 +1715,15 @@ function taxonomy_rdf_mapping() {
function taxonomy_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
foreach ($items as $delta => $item) {
if ($item['tid'] == 'autocreate') {
+ // Avoid duplicating tags within the same vocabulary.
+ $tid = db_query_range("SELECT tid FROM {taxonomy_term_data} WHERE name = :name AND vid = :vid", 0, 1, array(
diff --git legacy_reference.module legacy_reference.module
index 43ffc1b..99141da 100644
--- legacy_reference.module
+++ legacy_reference.module
@@ -242,7 +242,7 @@ function legacy_reference_feeds_processor_targets_alter(&$targets, $entity_type,
if ($info['type'] == 'legacy_reference') {
$targets[$name] = array(
'name' => $instance['label'],
- 'callback' => 'field_feeds_set_target_text',
+ 'callback' => 'legacy_reference_feeds_set_target',