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

Commit

Permalink
Added patch to add hook_dkan_datastore_field_exclude_alter (#454)
Browse files Browse the repository at this point in the history
* Added patch to add hook_dkan_datastore_field_exclude_alter

* Updates build-dkan.make from tag 7.x-1.13.7 to tag 7.x-1.13.7
  • Loading branch information
kducharm authored and dkinzer committed Sep 5, 2017
1 parent 3d91b9e commit 2f18702
Show file tree
Hide file tree
Showing 38 changed files with 131 additions and 100 deletions.
1 change: 1 addition & 0 deletions build-dkan.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ projects[dkan][download][url] = https://github.com/NuCivic/dkan.git
projects[dkan][download][tag] = 7.x-1.13.7

projects[dkan][patch][] = https://patch-diff.githubusercontent.com/raw/NuCivic/dkan/pull/1976.diff
projects[dkan][patch][] = https://patch-diff.githubusercontent.com/raw/NuCivic/dkan/pull/2095.diff
2 changes: 1 addition & 1 deletion config/tests/behat.custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default:
suites:
custom:
paths:
- "%paths.base%/../config/tests/features"
- '%paths.base%/../config/tests/features'
contexts:
- CustomContext
- FeatureContext
Expand Down
3 changes: 2 additions & 1 deletion dkan/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
The following patches have been applied to this project:
- https://patch-diff.githubusercontent.com/raw/NuCivic/dkan/pull/1976.diff
- https://patch-diff.githubusercontent.com/raw/NuCivic/dkan/pull/2095.diff

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/admin_menu_source/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/allow_ordering_of_the-2441283-5.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/autocomplete_deluxe/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/autocomplete-deluxe-2833824-4.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/beautytips/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- http://drupal.org/files/include-excanvas-via-libraries-api-d7-849232-13.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/chosen/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/chosen-accesibility_problem_with_input-0.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/color_field/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/color_field-requirements-2696505-v2.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/colorizer/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/colorizer-add-rgb-vars-2227651-4b.patch
- https://www.drupal.org/files/issues/colorizer-bug_system_cron_delete_current_css-2599298-9.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/entity/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/entity-multivalue-token-replacement-fix-2341611-0.patch
- https://www.drupal.org/files/issues/Use-array-in-foreach-statement-2564119-1.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/entity_path/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/entity-path-mysql-5-7_3.diff

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/facetapi/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- cross-site-scripting-facets-156778.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/feeds/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/1127696-137.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/feeds_field_fetcher/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://www.drupal.org/files/issues/feeds_field_fetcher-typo-error-2315425-1.patch
- http://www.drupal.org/files/issues/feeds_field_fetcher_error-validation-config.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/field_group/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://drupal.org/files/issues/field-group-show-ajax-2042681-8.patch
- https://www.drupal.org/files/issues/hash-location-sanitization.diff

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/field_group_table/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/added_missing_isset_calls-2887897-2.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/fieldable_panels_panes/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/fieldable_panels_panes-title-shown-when-set-to-hidden-2826182-3.patch
- https://www.drupal.org/files/issues/fieldable_panels_panes-n2826205-32.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/fontyourface/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/browse-fonts-page-uses-disabled-font-2644694.patch
- https://www.drupal.org/files/issues/font_your_face-remove_div_general_text_option-D7.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/gravatar/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- http://drupal.org/files/views-display-user-picture-doesn-t-display-gravatar-1568162-10.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/gravatar/gravatar.info
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ files[] = gravatar.admin.inc
files[] = views_handler_gravatar.inc
configure = admin/config/people/gravatar

; Information added by drush on 2011-12-31
; Information added by drush on 2012-01-01
version = "7.x-1.1+5-dev"
project = "gravatar"
datestamp = "1325392401"
2 changes: 1 addition & 1 deletion dkan/modules/contrib/markdowneditor/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- http://drupal.org/files/remove-dsm-from-hook-install-2045225-1.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/media/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/media_dialog_appears_2272567-32.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/media_vimeo/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/no_exception_handling-2446199-1.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/migrate/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/migrate-append-map-messages-1989492-10.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/og/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/og_actions-bug-vbo-delete.patch
- https://www.drupal.org/files/issues/og-missing-permission-roles-2301831-1.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/panopoly_widgets/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ The following patches have been applied to this project:
- panopoly_widgets_add_jquery_ui_tabs.patch
- panopoly_widgets_overrides_OOB.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/ref_field/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/ref_field-delete-insert-warning-2360019-5.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/rules/PATCHES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- https://www.drupal.org/files/issues/2406863_rules-7-x-2.10-configurable_rules_stampede_protection-126.patch
- https://www.drupal.org/files/issues/rules_init_and_cache-2851567-8.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/uuidreference/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/uuidreference-alternative_to_module_invoke_all_implementation_for_query_alter_hook-238875-0.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The following patches have been applied to this project:
- http://www.drupal.org/files/issues/views_autocomplete_filters-cache-2374709-2.patch
- http://www.drupal.org/files/issues/views_autocomplete_filters-content-pane-2317351-4.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
2 changes: 1 addition & 1 deletion dkan/modules/contrib/workbench_moderation/PATCHES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following patches have been applied to this project:
- https://www.drupal.org/files/issues/workbench_moderation-install-warnings-2360973-3.patch

This file was automatically generated by Drush Make (http://drupal.org/project/drush).
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* @file
* Hooks provided by DKAN Datastore API module.
*/

/**
* @addtogroup hooks
* @{
*/

/**
* Allows fields exclusions to be altered for API queries.
*
* @param array $excludes
* List of fields to exclude.
*/
function hook_dkan_datastore_api_field_excluded_alter(&$excludes) {
$excludes[] = 'exclude_this_field';
}

/**
* @} End of "addtogroup hooks".
*/
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ function build_qualified_fields($fields, $alias) {
*/
function dkan_datastore_api_field_excluded($field) {
$excludes = array('timestamp', 'feeds_entity_id', 'feeds_flatstore_entry_id');
foreach (module_implements('dkan_datastore_api_field_excluded_alter') as $module) {
$function = $module . '_dkan_datastore_api_field_excluded_alter';
$function($excludes);
}
return in_array($field, $excludes);
}

Expand Down
Loading

0 comments on commit 2f18702

Please sign in to comment.