Index: devel/devel.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/devel/devel.module,v
retrieving revision 1.258.2.31
diff -u -p -r1.258.2.31 devel.module
--- devel/devel.module	7 Sep 2008 17:00:33 -0000	1.258.2.31
+++ devel/devel.module	19 Oct 2008 01:43:45 -0000
@@ -188,6 +188,39 @@ function devel_menu() {
     'access arguments' => array('access devel information'),
     'type' => MENU_LOCAL_TASK,
   );
+  $items['taxonomy/term/%/load'] = array(
+    'title' => 'Dev load',
+    'page callback' => 'devel_load_term',
+    'page arguments' => array(2, 'term'),
+    'access callback' => 'user_access',
+    'access arguments' => array('access devel information'),
+    'type' => MENU_LOCAL_TASK,
+    'weight' => 3,
+  );
+  // Modify term edit menu to allow local tasks
+  $items['admin/content/taxonomy/edit/term/%'] = array(
+    'title' => 'Edit term',
+    'page callback' => 'taxonomy_admin_term_edit',
+    'access arguments' => array('administer taxonomy'),
+    'page arguments' => array(5),
+    'file' => 'taxonomy.admin.inc',
+    'file path' => drupal_get_path('module', 'taxonomy'),
+  );
+  $items['admin/content/taxonomy/edit/term/%/edit'] = array(
+    'title' => t('Edit term'),
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+    'weight' => 0,
+  );
+  $items['admin/content/taxonomy/edit/term/%/load'] = array(
+    'title' => 'Dev load',
+    'page callback' => 'devel_load_term',
+    'page arguments' => array(5),
+    'access callback' => 'user_access',
+    'access arguments' => array('access devel information'),
+    'type' => MENU_LOCAL_TASK,
+    'weight' => 3,
+  );
+  
   
   return $items;
 }
@@ -1221,6 +1254,18 @@ function devel_switch_user($name = NULL)
 }
 
 /**
+ * Menu callback; prints the loaded structure of the current term.
+ * TODO: when taxonomy_term_load() becomes available, this can be removed in
+ * favor of devel_load_object()
+ */
+function devel_load_term($tid, $name = NULL) {
+  $object = taxonomy_get_term($tid);
+  // Invoke the various term enhancers that may add extra attributes
+  module_invoke_all('taxonomy_term_load', $object);
+  return devel_load_object($object, $name);
+}
+
+/**
  * Menu callback; prints the loaded structure of the current node/user.
  */
 function devel_load_object($object, $name = NULL) {
