| 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 |
| 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 |
); |
); |