-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #21: Fix actions for views bulk operations, add message when th… #22
base: 1.x-1.x
Are you sure you want to change the base?
Conversation
658c99c
to
d5bac82
Compare
… message when they can't act.
d5bac82
to
9b53ae0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR works fine. I've left a couple comments - the configuration form won't work with core's version of bulk operations.
/** | ||
* Form for configuring the Flag node action. | ||
*/ | ||
function flag_node_action_form($context = array()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if these get called. From what I recall, core version of Bulk Actions didn't include the ability to have forms for configuring actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interested in this -- I have the same issue with a few modules I was trying to port in my spare time (e.g. node convert, organic groups I think).
*/ | ||
|
||
/** | ||
* Implements Drupal action. Flags any entity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "Backdrop action".
/** | ||
* Form for configuring the Flag node action. | ||
*/ | ||
function flag_node_action_form($context = array()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if these get called. From what I recall, core version of Bulk Actions didn't include the ability to have forms for configuring actions.
@@ -507,10 +507,33 @@ function flag_help($path, $arg) { | |||
} | |||
|
|||
/** | |||
* Implements hook_init(). | |||
* Implements hook_action_info(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed this is in flag.module. Shouldn't it be in flag_actions.module?
Fixes #21