'. t('scheduled_content help text goes here') .'

'; break; } return $output; } /** * Implementation of hook_menu(). */ function scheduled_content_menu() { $items = array(); $items['admin/content/scheduler'] = array( 'title' => 'Scheduled Content', 'description' => 'Shows all content which is currently scheduled.', 'page callback' => '_scheduled_content_view', 'page arguments' => array('publish'), 'access arguments' => array('schedule (un)publishing of nodes'), 'type' => MENU_NORMAL_ITEM, ); // Tabs: $items['admin/content/scheduler/publish'] = array( 'title' => 'Scheduled For Publishing', 'description' => 'Shows all content which is scheduled for publishing.', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/content/scheduler/unpublish'] = array( 'title' => 'Scheduled For Unpublishing', 'description' => 'Shows all content which is scheduled for un-publishing.', 'page arguments' => array('unpublish'), 'access arguments' => array('schedule (un)publishing of nodes'), // should inherit this from parent? 'type' => MENU_LOCAL_TASK, ); return $items; } /** * Returns the rendered content of the required view, either scheduled_publish or scheduled_unpublish. */ function _scheduled_content_view($publish_or_unpublish) { $output = views_embed_view('scheduled_' . $publish_or_unpublish, 'page_1'); return $output; } /** * Implementation of hook_views_api(). */ function scheduled_content_views_api() { return array( 'api' => 2, 'path' => drupal_get_path('module', 'scheduled_content'), //'path' => drupal_get_path('module', 'scheduled_content') . '/includes', ); }