function field_field_create_complete

8.0.x field.drush.inc field_field_create_complete()
6.x field.drush.inc field_field_create_complete()
7.x field.drush.inc field_field_create_complete()
5.x field.drush.inc field_field_create_complete()

Command argument complete callback.

File

commands/core/field.drush.inc, line 110
Field API's drush integration

Code

function field_field_create_complete() {
  if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_FULL)) {
    $all = array();
    $info = field_info_bundles();
    foreach ($info as $entity_type => $bundles) {
      $all = array_merge($all, array_keys($bundles));
    }
    return array('values' => array_unique($bundles));
  }
}