function finder_node_finder_fields in Finder 7
Same name and namespace in other branches
- 6 modules/finder_node/finder_node.module \finder_node_finder_fields()
Implements hook_finder_fields().
See also
hook_finder_fields()
File
- modules/
finder_node/ finder_node.module, line 99 - 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_revision.body' => $prefix . t('Body'),
//'node_revision.teaser' => $prefix . t('Teaser'),
'node_revision.log' => $prefix . t('Revision log'),
);
return $field_array;
}