You are here

function wordpress_migrate_drush_command in WordPress Migrate 7

Same name and namespace in other branches
  1. 8.3 wordpress_migrate.drush.inc \wordpress_migrate_drush_command()
  2. 7.2 wordpress_migrate.drush.inc \wordpress_migrate_drush_command()

Implementation of hook_drush_command().

File

./wordpress_migrate.drush.inc, line 23
Drush support for the wordpress_migrate module

Code

function wordpress_migrate_drush_command() {
  static $commands = FALSE;
  $items['wordpress-migrate-import'] = array(
    'description' => 'Import a WordPress blog',
    'arguments' => array(
      'filename' => 'Filename of blog export to import',
    ),
    'examples' => array(
      'wordpress-migrate-import public://wordpress/blog.xml' => 'Import blog data',
    ),
    'drupal dependencies' => array(
      'migrate',
    ),
  );
  $items['wordpress-migrate-rollback'] = array(
    'description' => 'Rollback a WordPress blog',
    'arguments' => array(
      'filename' => 'Filename of blog export to rollback',
    ),
    'examples' => array(
      'wordpress-migrate-rollback public://wordpress/blog.xml' => 'Rollback blog data',
    ),
    'drupal dependencies' => array(
      'migrate',
    ),
  );
  return $items;
}