Re-add Create Content to Admin Menu
Submitted by peter on Tue, 2011-09-27 13:31
Are you like me? HATE that they decided to remove the Create Content links from the admin_menu module in D7? 
ok, here is the code to add it back: 
function liquid_menu() {
$items = array();
//======== replace missing Add Content to admin_menu
$items['admin/content/workflow/node_add'] = array(
'title' => 'Create Content',
'description' => 'Content Workflow',
'page callback' => '_liquid_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' => '_liquid_add_content',
'page arguments' => array(4),
'access arguments' => array('administer site configuration'),
);
}
return $items;
}
function _liquid_add_content($path){
drupal_goto("node/add/$path");
} in


