mysite_content_menu()
mysite.module, line 3131
Create a list of submenu items for the Add / Delete Content page.
An array of key-value pairs used to build the submenu for adding content, where the key is the content type and the value is the text to display.
function mysite_content_menu() {
static $items = array();
if (empty($items)) {
$types = mysite_load_includes('types', NULL);
foreach ($types as $type) {
$check = module_invoke('mysite_type', $type, FALSE);
if (empty($check['admin'])) {
$items[$type] = $check;
}
}
}
return $items;
}