You are here

public static function WordPressBlog::blogs in WordPress Migrate 7

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

File

./wordpress.inc, line 182
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;
}