You are here

delete.action.inc in Views Bulk Operations (VBO) 5

Same filename and directory in other branches
  1. 6.3 delete.action.inc

File

delete.action.inc
View source
<?php

function delete_action_info() {
  return array(
    'delete_action' => array(
      'type' => 'node',
      'description' => t('Delete node'),
    ),
  );
}
function delete_action($node) {
  node_delete($node->nid);
}

Functions