*** /tmp/ediff8537PIj	2010-12-17 13:29:52.566389325 +1300
--- /home/berend/src/automatem/interest.co.nz/sites/all/modules/insert_view/insert_view.module	2010-10-15 11:31:23.636152438 +1300
***************
*** 81,86 ****
--- 81,88 ----
   * @param $display_id
   *   The display id to embed. If unsure, use 'default', as it will always be
   *   valid. But things like 'page' or 'block' should work here.
+  *   If the display id does not exist, we check if there's a display with a
+  *   title equal to $display_id and use that display.
   * @param $args
   *   Additional arguments to send to the view as if they were part of the URL in
   *   the form of arg1/arg2/arg3. You may use %0, %1, ..., %N to grab arguments
***************
*** 96,101 ****
--- 98,111 ----
      return;
    }

+   if (! array_key_exists ($display_id, $view->display)) {
+     foreach ($view->display as $id => $display) {
+       if ($display->display_title == $display_id) {
+         $display_id = $id;
+         break;
+       }
+     }
+   }
    if (!$view->access($display_id)) {
      return;
    }
