如果你想创建自己的模块,代码将如下所示:
function downloaded_menu(){ $items['user/%user/downloaded'] = array( 'title' => 'Downloaded', 'page callback' => 'downloaded_content_page', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, 'weight' => 10, ); return $items; }
downloaded_content_page(){your code here}
Run Code Online (Sandbox Code Playgroud)