Skip to content

Instantly share code, notes, and snippets.

@ahebrank
Created November 1, 2023 22:15
Show Gist options
  • Save ahebrank/2c668d847ecd0b432eb885bf92b2dc27 to your computer and use it in GitHub Desktop.
Save ahebrank/2c668d847ecd0b432eb885bf92b2dc27 to your computer and use it in GitHub Desktop.
diff --git a/viewfield_argument_helper.module b/viewfield_argument_helper.module
index 48a9355..defe0d1 100644
--- a/viewfield_argument_helper.module
+++ b/viewfield_argument_helper.module
@@ -27,7 +27,7 @@ function viewfield_argument_helper_help($route_name, RouteMatchInterface $route_
/**
* Implements hook_field_widget_viewfield_select_form_alter().
*/
-function viewfield_argument_helper_field_widget_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) {
+function viewfield_argument_helper_field_widget_complete_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) {
if (!\Drupal::currentUser()->hasPermission('use viewfield argument helper')) {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment