Index: clone.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/node_clone/clone.module,v retrieving revision 1.23 diff -u -r1.23 clone.module --- clone.module 15 Oct 2008 18:39:44 -0000 1.23 +++ clone.module 30 Jun 2009 13:18:24 -0000 @@ -100,3 +100,18 @@ ); } +/** + * Implementation of hook_init(). + */ +function clone_init() { + // Support admin theme setting, based on system_init(). + // Only affect the menu path created by this module, and only if the node admin theme checkbox is set. + if (variable_get('node_admin_theme', '0') && arg(0) == 'node' && arg(2) == 'clone') { + global $custom_theme; + // Use the chosen theme ID, or the front-end theme if one hasn't been selected. + $custom_theme = variable_get('admin_theme', '0'); + // From system.module, this css file is required in the admin view. + drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module'); + } +} +