Created
July 12, 2012 19:55
-
-
Save jec006/3100532 to your computer and use it in GitHub Desktop.
GetForm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Passthrough from Drupal form to the correct condition for building the preview form | |
* | |
* @param $form | |
* The form array used in hook_form | |
* @param $form_state | |
* The form_state array as used in hook_form | |
* | |
* @return | |
* A drupal form array created by the root condition | |
*/ | |
public function getPreviewForm($form, &$form_state) { | |
$root_condition = $this->getRootCondition(); | |
return drupal_get_form('sps_condition_preview_form', array($root_condition, 'getElement')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment