Migrating Photopost to Drupal 7

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Create a 'photopost_migration' folder in sites/all/modules with photopost_migration.info and photopost_migration.module files that include the following code:

photopost_migration.info

name = "Migrate photopost"
description = "Module to migrate photopost content to Drupal 7"
package = "Development"
core = 7.x
dependencies[] = migrate
dependencies[] = migrate_extras
dependencies[] = field
dependencies[] = file
dependencies[] = image
dependencies[] = number
dependencies[] = text
dependencies[] = options
dependencies[] = taxonomy
dependencies[] = date
dependencies[] = date_api
dependencies[] = date_migrate
dependencies[] = link
dependencies[] = media

files[] = photopost_roles.inc
files[] = photopost_user.inc
files[] = photopost_board.inc
files[] = photopost_gallery.inc
files[] = photopost_forum.inc

photopost_migration.module

<?php
// $Id: migrate_example.module,v 1.1.2.4 2010/12/18 16:04:59 mikeryan Exp $

/**
 * You must implement hook_migrate_api(), setting the API level to 2, for
 * your migration classes to be recognized by the Migrate module.
 */
function photopost_migration_migrate_api() {
  $api = array(
    'api' => 2,
  );
  return $api;
}
?>

Connecting to the Photopost database

My Photopost mysql database is separate from the Drupal 7 database, so I'm connecting to it at the top of each of my migrate .inc files,

Migrating Photopost Forum Structure with photopost_board.inc

With vBulletin Roles and Users in Drupal 7, we can now create a class to import the Photopost Gallery structure...then add photos, comments

Migrating Photopost Photos

With vBulletin Roles and Users in Drupal 7, we can now create a class to import the Photopost Gallery structure...then add photos, comments

Setting Up Drupal for Photopost Migration

Before migrating the gallery, photos, users and comments, you'll need to setup Drupal.

Guide maintainers

StuartDH's picture