You are here

function title_drush_command in Title 7

Implements hook_drush_command().

File

./title.drush.inc, line 21
Drush commands for Title module.

Code

function title_drush_command() {
  $items['upgrade-title-fields'] = array(
    'description' => 'Upgrade title fields to use title module, so that titles can be localized.',
    'drupal dependencies' => array(
      'title',
      'entity_translation',
    ),
  );
  $items['upgrade-title-field'] = array(
    'description' => 'Upgrade a title field on a legacy field. DO NOT call this command directly, it does not do any checking.',
    'hidden' => TRUE,
    'arguments' => array(
      'entity_type' => 'The type of entity, be it a node, user, term, etc.',
      'bundle' => 'The entity bundle.',
      'legacy_field' => 'The machine name of the legace field.',
    ),
  );
  return $items;
}