 includes/popup.api.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/includes/popup.api.inc b/includes/popup.api.inc
index 751977d..4d46aa7 100644
--- a/includes/popup.api.inc
+++ b/includes/popup.api.inc
@@ -26,6 +26,9 @@
  *
  * form   - form id of the form to be displayed within the popup block.
  *
+ *            args    - a comma separated list of arguments to be passed to the
+ *                      form.
+ *
  * block  - Id of the block to be popped up OR a value of TRUE, indicating that
  *          a block provided by a module should be displayed. In the latter
  *          case, the following attributes should also be provided:
@@ -371,7 +374,7 @@ function _popup_form($attributes, $return = FALSE){
     return $title;
   }
 
-  $body = drupal_render(drupal_get_form($attributes['form']));
+  $body = drupal_render(drupal_get_form($attributes['form'], $attributes['args']));
 
   if ($attributes['ajax']){
     $body = '<div class="ajax-form-wrapper">' . $body . '</div>';
