I am using Organic Groups in conjunction with Views Block Operations. Whenever I try to perform a group action (such as adding a group to a post), this error appears:
warning: call_user_func(og_add_group_action_validate) [function.call-user-func]: First argument is expected to be a valid callback in /var/www/html/sites/default/modules/views_bulk_operations/views_bulk_operations.module on line 380.
From what I see in the issue queue for the other module, this is a bug in OG because it doesn't provide a _validate function.
From the Actions doc:
If an action is configurable it will provide form, validation and submission functions. The hooks the action supports are declared in the 'hooks' array.
Due to this error, the action does not get performed.
Comments
Comment #1
joewang commentedNevermind. The error was of no relevance -- Drupal simply does not perform the Action of adding a group to a post. It doesn't throw an error either.
Comment #2
joewang commentedI actually did run a test on the Organic Groups action, and it works fine when used with a Trigger (run action after updating post). This narrows the problem down to the Views Bulk Operations module -- it doesn't execute the action?
Comment #3
infojunkieI was able to reproduce that bug. I'll look into it. Thanks for your report.
Comment #4
infojunkieFixed with moshe weitzman's gracious help. You will need to download the latest og-HEAD, or wait until the next stable og release, or manually patch og_actions.module as per the aforementioned issue.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.