function field_field_complete_field_names

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

List field names for completion.

Return value

Array of available site aliases.

3 calls to field_field_complete_field_names()
field_field_clone_complete in commands/core/field.drush.inc
Command argument complete callback.
field_field_delete_complete in commands/core/field.drush.inc
Command argument complete callback.
field_field_update_complete in commands/core/field.drush.inc
Command argument complete callback.

File

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

Code

function field_field_complete_field_names() {
  if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_FULL)) {
    $info = field_info_fields();
    return array('values' => array_keys($info));
  }
}