5 * Plugin to handle the 'page' content type which allows the standard page
6 * template variables to be embedded into a panel.
10 * Plugins are described by creating a $plugin array which will be used
11 * by the system that includes this file.
14 'title' => t('Primary navigation links'),
16 'icon' => 'icon_page.png',
17 'description' => t('Add the primary_links (local tasks) as content.'),
18 'category' => t('Page elements'),
19 'render last' => TRUE,
23 * Output function for the 'page_primary_links' content type.
25 * Outputs the primary_links (local tasks) of the current page.
27 function ctools_page_primary_links_content_type_render($subtype, $conf, $panel_args) {
28 $block = new stdClass();
29 $block->content = theme('links', array('links' => menu_main_menu(), 'attributes' => array('class' => 'links primary-links')));
35 * Returns an edit form for custom type settings.
37 function ctools_page_primary_links_content_type_edit_form($form, &$form_state) {
38 // Empty so that we can have title override.