You are here

function apachesolr_form_block_admin_configure_alter in Apache Solr Search 6

Same name and namespace in other branches
  1. 6.2 apachesolr.module \apachesolr_form_block_admin_configure_alter()

Implementation of hook_form_[form_id]_alter().

Hide the core 'title' field in favor of our 'name' field..

File

./apachesolr.module, line 1748
Integration with the Apache Solr search application.

Code

function apachesolr_form_block_admin_configure_alter(&$form, $form_state) {
  if ($form['module']['#value'] == 'apachesolr' && $form['delta']['#value'] != 'sort') {
    $form['block_settings']['title']['#access'] = FALSE;
  }
}