diff --git a/variables/FormerlyVariable.php b/variables/FormerlyVariable.php index 224894d..5c045e2 100644 --- a/variables/FormerlyVariable.php +++ b/variables/FormerlyVariable.php @@ -16,6 +16,11 @@ public function form($handle) return craft()->formerly_forms->getFormByHandle($handle); } + public function submissions() + { + return craft()->elements->getCriteria('Formerly_Submission'); + } + public function __get($prop) { if ($prop == 'submissions')