function multifield_drush_command in Multifield 7
Same name and namespace in other branches
- 7.2 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;
}