| 1 |
<?php |
<?php |
| 2 |
// $Id: luceneapi_node.admin.inc,v 1.10.2.21 2009/11/15 17:54:37 cpliakas Exp $ |
// $Id: luceneapi_node.admin.inc,v 1.11 2009/11/15 19:22:14 cpliakas Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 68 |
$form['type']['luceneapi_node:excluded_types'] = array( |
$form['type']['luceneapi_node:excluded_types'] = array( |
| 69 |
'#type' => 'checkboxes', |
'#type' => 'checkboxes', |
| 70 |
'#title' => t('Types excluded from index'), |
'#title' => t('Types excluded from index'), |
| 71 |
'#options' => array_map('check_plain', node_get_types('names')), |
'#options' => array_map('check_plain', node_type_get_types()), |
| 72 |
'#default_value' => luceneapi_node_variable_get('excluded_types'), |
'#default_value' => luceneapi_node_variable_get('excluded_types'), |
| 73 |
'#description' => t('Adding content types to the exclude list will <b>delete nodes of the selected content types from the index</b>.<br/>Removing content types from the exclude list will <b>automatically force an index rebuild</b>.'), |
'#description' => t('Adding content types to the exclude list will <b>delete nodes of the selected content types from the index</b>.<br/>Removing content types from the exclude list will <b>automatically force an index rebuild</b>.'), |
| 74 |
); |
); |
| 207 |
'#description' => t('Adds bias to nodes of certain content types. Changes to these values are not immediate and will be reflected when content is reindexed.'), |
'#description' => t('Adds bias to nodes of certain content types. Changes to these values are not immediate and will be reflected when content is reindexed.'), |
| 208 |
); |
); |
| 209 |
|
|
| 210 |
$types = array_map('check_plain', node_get_types('names')); |
$types = array_map('check_plain', node_type_get_types()); |
| 211 |
foreach ($types as $type => $name) { |
foreach ($types as $type => $name) { |
| 212 |
$variable = sprintf('luceneapi_node:bias:type_%s', $type); |
$variable = sprintf('luceneapi_node:bias:type_%s', $type); |
| 213 |
$form['type_tags'][$variable] = array( |
$form['type_tags'][$variable] = array( |