Like the fellow in issue #360149: Delete nodes in views bulk operations, I cannot find a delete node action. It does not appear in the list of options under settings.

To compound my tale of misery, my view does not include a "check all" box. I imagine that this is not a specific VBO problem, but I'd sure appreciate any advice. Is it possible that this is related to the "no delete" problem.

Thanks, friends.

Comments

cayenne’s picture

Good news, re-installing the jquery code restored the check-all box.

Now all I need is the delete option. Thanks!

cayenne’s picture

Status: Active » Closed (fixed)

And installing the ACTION MODULE revealed the delete option. Okay thanks!

jwbuzz’s picture

I also don't have any delete actions showing up. What "ACTION MODULE" are you referring to? I have the actions module installed.. No delete function.

jwbuzz’s picture

Status: Closed (fixed) » Active
infojunkie’s picture

You might need Actions 5.x-2.6 to see the "Delete node" action.

jwbuzz’s picture

I went ahead an created my own "old-style" action similar to this. Thanks for the help.

function action_mymodule_delete($op, $edit = array(), &$node) {
  switch($op) {
    case 'metadata':
      return array(
        'description' => t('Delete the node'),
        'type' => t('Node'),
        'batchable' => true,
        'configurable' => false,
      );

    case 'do':
      node_delete($node->nid);
      watchdog('action', t('Deleted node id %id', array('%id' => intval($node->nid))));
      break;

     // process the HTML form to store configuration
    case 'submit':
      return '';
  }
}
infojunkie’s picture

Status: Active » Closed (fixed)

Thanks for your code contribution!

liquidcms’s picture

Component: Code » Core
Status: Closed (fixed) » Active

so is this suggesting that the VBO module release stream is tied to which version of Action API (1 or 2)? Is it just the delete action that will lost?

ideally, vbo would have been re-streamed to 5.x-2.x when they decided they were going to switch over to Actions 2 just to be clear.

liquidcms’s picture

looks like taxonomy actions are also lost with 5.x-1.4 and Actions 1

infojunkie’s picture

@liquidcms: That's right, you need Actions 2 for the taxonomy action.

infojunkie’s picture

@liquidcms, do you have any request concerning this issue?

liquidcms’s picture

nope, i'm good.. i re-wrote the delete action and don't think we are using the taxonomy action (which maybe didn't even exist with Actions 1 version)... all updated to 5.x-1.4 version now as well (now that we have an update script) :).

thanks.

infojunkie’s picture

Status: Active » Closed (fixed)