/[drupal]/contributions/modules/views_fastsearch/contrib/vfs_ranking_nodetype/vfs_ranking_nodetype.module
ViewVC logotype

Diff of /contributions/modules/views_fastsearch/contrib/vfs_ranking_nodetype/vfs_ranking_nodetype.module

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

revision 1.1.2.1, Thu Jan 17 04:51:33 2008 UTC revision 1.1.2.2, Thu Jan 17 05:06:56 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: vfs_ranking_nodetype.module,v 1.1.2.1 2008/01/17 04:51:33 jacobsingh Exp $
3    
4  /**  /**
5   * Implement the search_ranking callback   * Implement the search_ranking callback
# Line 43  function vfs_ranking_nodetype_settings_f Line 43  function vfs_ranking_nodetype_settings_f
43    foreach (node_get_types() as $type) {    foreach (node_get_types() as $type) {
44      $form['types'][$type->type] = $field = array (      $form['types'][$type->type] = $field = array (
45        '#title' => $type->name,        '#title' => $type->name,
46        '#default_value' => $weights[$type->type],        '#default_value' => ($weights[$type->type]) ? $weights[$type->type]: 1,
47        '#type' => 'select',        '#type' => 'select',
48        '#options' => array_combine(range(0,10),range(0,10)),        '#options' => array_combine(range(0,10),range(0,10)),
49      );      );

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2