You are here

function multifield_drush_command in Multifield 7.2

Same name and namespace in other branches
  1. 7 multifield.drush.inc \multifield_drush_command()

@file Drush integration for the Multifield module.

File

./multifield.drush.inc, line 8
Drush integration for the Multifield module.

Code

function multifield_drush_command() {
  $commands['convert-field-collection'] = array(
    'description' => 'Convert a field collection to a multifield',
    'callback' => 'drush_multifield_convert_field_collection',
    'arguments' => array(
      'field_name' => 'The multifield field to migrate.',
    ),
    'options' => array(
      'target-field-name' => 'The new field name to use. Defaults to the existing field name.',
    ),
    'required arguments' => TRUE,
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
  );
  return $commands;
}