We manage permissions using features and revert the feature during a hook_update_N() function when necessary. We recently started using actions_permissions to manage permissions for the actions available to VBO. When reverting the feature during the hook_update_N(), the include file is not loaded and the feature revert displays warnings that no module defines permission for the two actions provided by this module.

Since hook_init() isn't run during updates, I moved nodequeue_action_info() into the .module file so the hook was run when actions_list() calls module_invoke_all('action_info').

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pixlkat created an issue. See original summary.

orbmantell’s picture

Status: Active » Reviewed & tested by the community

I have tested this patch, and have found it causes no adverse impact. The change accomplishes what is expected, and as there is no 8.x version of this module there is no change needed there. I am marking this RTBC.

  • jenlampton committed 24e41e3 on 7.x-2.x authored by pixlkat
    Issue #2878868 by pixlkat: actions not available when running updates
    
jenlampton’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.