function _webform_analysis_node in Webform Node Element 6
Same name and namespace in other branches
- 7 components/node.inc \_webform_analysis_node()
Implements _webform_analysis_component().
File
- components/
node.inc, line 163 - Webform module node component.
Code
function _webform_analysis_node($component, $sids = array()) {
$node = node_load($component['extra']['nid']);
return array(
array(
t('Nid'),
t('<a href="!link">@nid</a>', array(
'!link' => url('node/' . $node->nid),
'@nid' => $node->nid,
)),
),
array(
t('Title'),
check_plain($node->title),
),
array(
t('Type'),
$node->type,
),
array(
t('Display Mode'),
$component['extra']['view_mode'] ? t('Teaser') : t('Full'),
),
);
}