Index: nodetype.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/nodetype/Attic/nodetype.module,v retrieving revision 1.2 diff -u -p -r1.2 nodetype.module --- nodetype.module 23 Mar 2008 14:48:34 -0000 1.2 +++ nodetype.module 17 Dec 2009 23:59:59 -0000 @@ -51,3 +51,19 @@ function nodetype_form_alter(&$form, $fo ); } } + +function nodetype_node_operations() { + module_load_include('inc', 'node', 'node.admin'); + $operations = array(); + if (user_access('change node types')) { + $node_types = node_get_types(); + foreach ($node_types as $type => $info) { + $operations['change-'. $type] = array( + 'label' => t('Set type to @type', array('@type' => $info->name)), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('type' => $type)), + ); + } + } + return $operations; +}