theme_help

5 theme.inc theme_help()
6 theme.inc theme_help()

Return a themed help message.

Return value

a string containing the helptext for the current page.

Related topics

2 theme calls to theme_help()

File

includes/theme.inc, line 1312
The theme system, which controls the output of Drupal.

Code

function theme_help() {
  if ($help = menu_get_active_help()) {
    return '<div class="help">' . $help . '</div>';
  }
}

Comments

Returning a value

I think it's important to note that you'd probably want something along the lines of

<?php
else {
return
menu_get_active_help();
}
?>

if you're modifying the help text for a particular content type.

Login or register to post comments