function finder_node_finder_fields in Finder 6
Same name and namespace in other branches
- 7 modules/finder_node/finder_node.module \finder_node_finder_fields()
Implementation of hook_finder_fields().
See also
hook_finder_fields()
File
- modules/
finder_node/ finder_node.module, line 98 - The finder node module.
Code
function finder_node_finder_fields($finder, $finder_element_id) {
// specify fields like: 'table.field-name' => t('display title')
$prefix = t('Node') . ': ';
$field_array = array(
'node.nid' => $prefix . t('Nid'),
'node.vid' => $prefix . t('Vid'),
'node_type.name' => $prefix . t('Type'),
'node.language' => $prefix . t('Language'),
'node.title' => $prefix . t('Title'),
'users.name' => $prefix . t('Author'),
'node.status' => $prefix . t('Status'),
'node.created' => $prefix . t('Created'),
'node.changed' => $prefix . t('Changed'),
'node.comment' => $prefix . t('Comment'),
'node.promote' => $prefix . t('Promote'),
'node.moderate' => $prefix . t('Moderate'),
'node.sticky' => $prefix . t('Sticky'),
'node.tnid' => $prefix . t('Tnid'),
'node.translate' => $prefix . t('Translate'),
'node_revisions.body' => $prefix . t('Body'),
'node_revisions.teaser' => $prefix . t('Teaser'),
'node_revisions.log' => $prefix . t('Log'),
'node_revisions.format' => $prefix . t('Format'),
);
return $field_array;
}