function drush_get_engine_topics

8.0.x drush_get_engine_topics()
6.x drush_get_engine_topics()
7.x drush_get_engine_topics()
master 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/
Implementation of hook_drush_command().


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


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;