I use "action" to process the selected nodes.

I have two questions:

1. I noticed that the selected nodes show up as "updated" after the operation. However, inside my action, I don't update the selected nodes. I don't know if this is the correct behavior. Is there an option to avoid this?

2. I also see a drupal message showing up at the page top, it looks something like:

5 rows processed:
   perform myaction on object x1
   perform myaction on object x2
....

Is there a way to mask off the message?

thanks!

Comments

infojunkie’s picture

Assigned: Unassigned » infojunkie

1. By default, the module saves each node after executing the operation. But looking at the code again, I noticed that the action property "changes_node_property" gives a hint as to whether the action modifies the node or not. I will update the code to check for that property before saving the node.

2. There is currently no way to mask this message. I will add an option to display or mask the message in the view admin screen.

infojunkie’s picture

Status: Active » Fixed

Both issues are fixed. Please try them and let me know. Note that you will need to wait until Drupal.org refreshes the dev release with these commits.

newbuntu’s picture

it's working. Thanks a lot!

Status: Fixed » Closed (fixed)

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