You are here

public static function WordPressBlog::blogs in WordPress Migrate 7.2

Same name and namespace in other branches
  1. 7 wordpress.inc \WordPressBlog::blogs()

Get a list of all WordPress blogs.

Return value

WordPressBlog[]

1 call to WordPressBlog::blogs()
wordpress_migrate_update_7015 in ./wordpress_migrate.install
Updates to legacy wordpress migration arguments.

File

./wordpress.inc, line 329
Implementation of migration from WordPress into Drupal

Class

WordPressBlog

Code

public static function blogs() {
  $blogs = array();
  $result = db_select('wordpress_migrate', 'wm')
    ->fields('wm', array(
    'filename',
  ))
    ->execute();
  foreach ($result as $row) {
    $blogs[] = wordpress_migrate_blog($row->filename);
  }
  return $blogs;
}