/**
  * Construct the plugin
  * Adds the admin menu
  */
 public function __construct()
 {
     // Only process if in admin
     if (is_admin()) {
         // Add admin menu
         add_action('admin_menu', array($this, 'addMenuItem'));
         // Use a session so we can store the db details (safer than a cookie)
         // @todo use an encrypted cookie instead
         if (!session_id()) {
             session_start();
         }
         // Validate the iframe nonce
         if (isset($_GET['_drupal2wp_wpnonce']) && wp_verify_nonce($_GET['_drupal2wp_wpnonce'], 'drupal2wp_import_iframe')) {
             Drupal2WordPress_DrupalImporter::process();
         }
     }
 }