'Example help', 'page callback' => 'help_example_index_page', 'access arguments' => array('view advanced help index'), 'weight' => 9, ); return $items; } /** * Topic index callback. */ function help_example_index_page() { $output = '

' . t('Read the source code of the module Help example to learn how to create themed and plain links to help topics, and how to render help in the adminstrative theme.') . '

'; $output .= '

' . t('Two popup examples:') . '
'; // Create the question mark icon for the topic. $toc_qm = theme('advanced_help_topic', array( 'module' => 'help_example', 'topic' => 'toc', 'type' => 'icon', )); // Append some explanatory text. $output .= $toc_qm . ' ' . t('Click the help icon on the left to view a popup of the example module index page.'); $output .= '
'; $topic_qm = theme('advanced_help_topic', array( 'module' => 'help_example', 'topic' => 'about-example', 'type' => 'icon', )); $output .= $topic_qm . ' ' . t('Click the help icon on the left to view a popup of the first help topic.'); // Create the question mark icon for the topic. $toc_qm = theme('advanced_help_topic', array( 'module' => 'help_example', 'topic' => 'toc', 'type' => 'icon', )); // Append some explanatory text. $output .= '

'; $output .= '

'; $topic_title = theme('advanced_help_topic', array( 'module' => 'help_example', 'topic' => 'lorem', 'type' => 'title', )); $output .= t('Link to a popup of the topic with the title: ') . $topic_title . '.'; $output .= '

'; $output .= '

'; $topic_title = theme('advanced_help_topic', array( 'module' => 'help_example', 'topic' => 'etiam', 'type' => 'anchor text', )); $output .= t('Link to a popup of the third topic with user defined ') . $topic_title . '.'; $output .= '

'; $output .= '

' . t('Examples of unthemed links to help pages:') . '
'; $output .= t('Link to the example module index page.
', array('@url' => '/admin/help/ah/help_example')); $output .= t('Link to the first help topic.', array('@url' => '/help/help_example/about-example')); $output .= '

'; return $output; }