diff --git a/sites/all/modules/relatedcontent/relatedcontent.module b/sites/all/modules/relatedcontent/relatedcontent.module index e8451a4..61a4a12 100755 --- a/sites/all/modules/relatedcontent/relatedcontent.module +++ b/sites/all/modules/relatedcontent/relatedcontent.module @@ -752,6 +752,10 @@ function _relatedcontent_form_view($form_values = NULL, $nid, $view_id) { // Set the page title. drupal_set_title(t('RelatedContent')); + // Hack - This adds a argument when the view is executed. + $args[] = $nid; // You'll need to customize this line to pass whichever variable as the argument + $view->set_arguments($args); + // unset the pager else the result will limit to number of items on a page of the view. We want all te results. unset($view->pager); $view->execute();