Change select options within a nodereference

First you’ll have to make use of hook_form_alter() function.

function example_form_alter(&$form, $form_state, $form_id) {
  $form['field_example_reference']['#pre_render'] = array('example_change_node_reference');
}

Now the node reference will look for a example_change_node_reference() function which will return an array of options.

function example_change_node_reference($element) {
      $element['nid']['nid']['#options'] = array($node->;nid => $node->title);
  return $element;
 
}

Make sure you pass the $element variable into the function. More info:http://drupal.org/node/339730.

Add alternative search with the Lucene API module

The Search Lucene API module is an alternative search module which can be used on your Drupal site. It’s powered by a stripped down version of the Zend Lucene Search which is a PHP port of Apache Lucene. Because it’s all PHP do don’t have to worry about running the search on a separate server or setup other applications to run the search. To install Search Lucene API go tohttp://drupal.org/project/luceneapi and download the module. Unzip the module into “sites/all/modules”.

The module also requires a stripped down version of the Zend Lucene Search which you’ll have to download separately.

Continue reading “Add alternative search with the Lucene API module”