diff --git a/clone.module b/clone.module index c898135..694f0c3 100644 --- a/clone.module +++ b/clone.module @@ -25,6 +25,20 @@ function clone_perm() { } /** +* Implementation of hook_node_operations(). +*/ +function clone_node_operations() { + $operations = array(); + if (user_access('clone node')) { + $operations['node_clone'] = array( + 'label' => 'Clone node', + 'callback' => 'clone_node_save', + ); + } + return $operations; +} + +/** * Implementation of hook_menu(). */ function clone_menu() {