function drush_get_engine_topics

8.0.x engines.inc drush_get_engine_topics()
6.x engines.inc drush_get_engine_topics()
7.x engines.inc drush_get_engine_topics()
master engines.inc drush_get_engine_topics()

Take a look at all of the available engines, and create topic commands for each one that declares a topic.

1 call to drush_get_engine_topics()
core_drush_command in commands/core/core.drush.inc
Implementation of hook_drush_command().

File

includes/engines.inc, line 116
The drush engines API implementation and helpers.

Code

function drush_get_engine_topics() {
  $items = array();
  $info = drush_get_engine_types_info();
  foreach ($info as $engine => $data) {
    if (array_key_exists('topic', $data)) {
      $items[$data['topic']] = array(
        'description' => $data['description'],
        'hidden' => TRUE,
        'topic' => TRUE,
        'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
        'callback' => 'drush_engine_topic_command',
        'callback arguments' => array($engine),
      );
    }
  }
  return $items;
}