--- admin_menu.module.orig 2011-09-27 09:04:49.000000000 -0400 +++ admin_menu.module 2011-09-30 12:33:09.000000000 -0400 @@ -98,6 +98,23 @@ function admin_menu_menu() { 'type' => MENU_CALLBACK, 'file' => 'admin_menu.inc', ); + // Add the create content links. + $items['admin/content/workflow/node_add'] = array( + 'title' => 'Create Content', + 'description' => 'Content Workflow', + 'page callback' => '_admin_menu_add_content', + 'page arguments' => array(2), + 'access arguments' => array('administer site configuration'), + ); + foreach(node_type_get_types() as $type => $object){ + $items['admin/content/workflow/node_add/' . $type] = array( + 'title' => $object->name, + 'description' => 'Settings for the proto module.', + 'page callback' => '_admin_menu_add_content', + 'page arguments' => array(4), + 'access arguments' => array('administer site configuration'), + ); + } return $items; } @@ -601,3 +618,13 @@ function admin_menu_form_devel_admin_set module_load_include('inc', 'admin_menu'); _admin_menu_form_devel_admin_settings_alter($form, $form_state); } + +/** + * Helper function: redirects to the correct node/add path. + * + * @param string $path + * The content type path. + */ +function _admin_menu_add_content($path) { + drupal_goto('node/add/' . $path); +} \ No newline at end of file