| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: webform_handler_field_form_body.inc,v 1.1.2.1 2010/03/03 02:51:31 quicksketch Exp $ 3 4 /** 5 * @file 6 * Views handler to display the content of a webform form. 7 */ 8 9 /** 10 * Field handler to present the Webform form body to the user. 11 */ 12 class webform_handler_field_form_body extends views_handler_field { 13 function construct() { 14 parent::construct(); 15 $this->additional_fields['nid'] = 'nid'; 16 } 17 18 function option_definition() { 19 $options = parent::option_definition(); 20 $options['label'] = array('default' => 'Form', 'translatable' => TRUE); 21 return $options; 22 } 23 24 function query() { 25 $this->ensure_my_table(); 26 $this->add_additional_fields(); 27 } 28 29 function render($values) { 30 $node = node_load($values->{$this->aliases['nid']}); 31 32 if (node_access('view', $node)) { 33 $form_body = node_view($node, FALSE, FALSE); 34 } 35 else { 36 return; 37 } 38 39 return $form_body; 40 } 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |