/[drupal]/contributions/modules/luceneapi/contrib/luceneapi_node/luceneapi_node.admin.inc
ViewVC logotype

Diff of /contributions/modules/luceneapi/contrib/luceneapi_node/luceneapi_node.admin.inc

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

revision 1.11, Sun Nov 15 19:22:14 2009 UTC revision 1.12, Mon Nov 16 04:03:37 2009 UTC
# Line 1  Line 1 
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
# Line 68  function luceneapi_node_admin_settings_g Line 68  function luceneapi_node_admin_settings_g
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    );    );
# Line 207  function luceneapi_node_admin_settings() Line 207  function luceneapi_node_admin_settings()
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(

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.2