/[drupal]/contributions/sandbox/scottreynolds/modules/node_recommendation_views.inc
ViewVC logotype

Contents of /contributions/sandbox/scottreynolds/modules/node_recommendation_views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Jul 11 23:22:10 2006 UTC (3 years, 4 months ago) by scottreynolds
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
cre speed improvements. Added page callback to node_recommendation.
Intial work on views addition
1 <?php
2 function node_recommendation_views_tables() {
3 $tables['node_recommendation'] = array(
4 'name' => 'cre_similarity_matrix',
5 'provider' => 'internal',
6 'join' => array(
7 'left' => array(
8 'table' => 'node',
9 'field' => 'nid'
10 ),
11 'right' => array(
12 'field' => 'content_id1'
13 )
14 ),
15 'fields' => array(
16 'score' => array(
17 'name' => t('Node Recommendation: Score'),
18 'handler' => 'node_recommendation_views_field_score',
19 'addlfields' => array('nid'),
20 ),
21 ),
22 );
23
24 return $tables;
25 }
26
27 function node_recommendation_views_field_score($fieldinfo, $fielddata, $value, $data) {
28
29
30 }
31 //end of file

  ViewVC Help
Powered by ViewVC 1.1.2