function drush_get_topics

8.0.x topic.drush.inc drush_get_topics()
6.x topic.drush.inc drush_get_topics()
7.x topic.drush.inc drush_get_topics()
4.x topic.drush.inc drush_get_topics()
5.x topic.drush.inc drush_get_topics()
master topic.drush.inc drush_get_topics()

Retrieve all defined topics

2 calls to drush_get_topics()
drush_topic_core_topic in commands/core/topic.drush.inc
A command callback.
topic_core_topic_complete in commands/core/topic.drush.inc
A command argument complete callback.

File

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

Code

function drush_get_topics() {
  $commands = drush_get_commands();
  foreach ($commands as $key => $command) {
    if (!empty($command['topic']) && empty($command['is_alias'])) {
      $topics[$key] = $command;
    }
  }
  return $topics;
}