You are here

function apachesolr_form_block_admin_display_form_alter in Apache Solr Search 6

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

Implementation of hook_form_[form_id]_alter

File

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

Code

function apachesolr_form_block_admin_display_form_alter(&$form) {
  foreach ($form as $key => $block) {
    if (strpos($key, "apachesolr_mlt-") === 0 && $block['module']['#value'] == 'apachesolr') {
      $form[$key]['delete'] = array(
        '#value' => l(t('delete'), 'admin/settings/apachesolr/mlt/delete_block/' . $block['delta']['#value']),
      );
    }
  }
}