views_bulk_operations.module, line 821, code states:
/**
* Implementation of hook_views_bulk_operations_object_info()
*
* Hook used by VBO to be able to handle different objects as does Views 2 and the Drupal core action system.
*
* The array returned for each object type contains:
* 'type' (required) => the object type name, should be the same as 'type' field in hook_action_info().
* 'context' (optional) => the context name that should receive the object, defaults to the value of 'type' above.
Context does not default to the value of 'type' as stated (so actually, 'context' is required too). Because of this, it is sometimes empty.
This sometimes leads to an empty key in the context array, e.g.
[] => stdClass Object
(
[nid] => 1234
[...]
)
instead of
[node] => stdClass Object
(
[nid] => 1234
[...]
)
Comments
Comment #1
anrikun commentedComment #2
anrikun commentedThis simple patch should do the trick! (It works for me)
Comment #3
infojunkieThanks for the patch. Committed to latest dev.