I’ve tried drupal_render,drupal_get_form and so on for rendering Drupal Development kind,however Drupal Development kind shouldn’t be being rendered. Is there any error in code or else what else ought to i add to Drupal Development code in order that it really works.
perform questionnaire_template_form($kind, &$form_state, $query) { print_r("in template perform"); $form_build = unserialize($question->criteria_data); foreach ($form_build as $key => $worth) { $choices = ($form_build[$key]['1']); $listing = explode("n", $choices); $listing = array_map('trim', $listing); $listing = array_filter($listing, 'strlen'); foreach ($listing as $key => $worth) ',$worth); $new_key = reset($new); $new_value = finish($new); $new_list = array($new_key => $new_value); dsm($new_list); dsm('subsequent'); $fb = explode("_",$key); $kind =reset($fb); if($kind == 'radio') { if($form_build[$key]['0']) { $kind['radio_form'] = array( '#kind' => 'radios', '#choices' => $listing, ); } } elseif($kind == 'checkbox') { if($form_build[$key]['0']) { $kind['checkbox_form'] = array( '#kind' => 'checkboxes', '#choices' => $listing, ); } } elseif($kind == 'selectlist') { if($form_build[$key]['0']) { $kind['selectlist_form'] = array( '#kind' => 'choose', '#choices' => $listing, ); } } } return $kind; }
Above code is my kind.
<div> <?php //print_r($variables['entity']->qid);?></br><?php print_r($variables['entity']->title);?></br><?php print_r($variables['entity']->textual content);?></br><?php ?></br><?php ?></br><?php if($variables['entity']->standards) { ?><br/><?php $form_template = drupal_get_form('questionnaire_template_form' , $variables['entity']); print(drupal_render($form_template)); } ?></br><?php print_r(l( t("Sure"), 'questionnaire/' . $variables['entity']->yes_quid));?></br><?php print_r(l( t("No"), 'questionnaire/' . $variables['entity']->no_quid));?></br><?php ?> </div>
And that is Drupal Development template the place I’m rendering Drupal Development kind. I get Drupal Development kind if I dsm Drupal Development kind