You are here

function wordpress_migrate_drush_command in WordPress Migrate 7.2

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

Implementation of hook_drush_command().

File

./wordpress_migrate.drush.inc, line 21
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',
    ),
  );
  return $items;
}