function topic_drush_help_alter

8.0.x topic.drush.inc topic_drush_help_alter(&$command)
6.x topic.drush.inc topic_drush_help_alter(&$command)
7.x topic.drush.inc topic_drush_help_alter(&$command)
4.x topic.drush.inc topic_drush_help_alter($command)
5.x topic.drush.inc topic_drush_help_alter($command)
master topic.drush.inc topic_drush_help_alter(&$command)

Implement hook_drush_help_alter(). Show 'Topics' section on help detail.

File

commands/core/topic.drush.inc, line 36
Topic command and associated hooks.

Code

function topic_drush_help_alter(&$command) {
  $implemented = drush_get_commands();
  foreach ($command['topics'] as $topic_name) {
    // We have a related topic. Inject into the $command so the topic displays.
    $command['sections']['topic_section'] = 'Topics';
    $command['topic_section'][$topic_name] = $implemented[$topic_name]['description'];
  }
}