From: Jason Skomorowski Date: Wed, 30 Mar 2011 14:42:37 +0000 (+0000) Subject: Facet removal button uniqueness. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=5d28701e59fbcfefa2750ed81d670d1478d0c298;p=mkdru-moved-to-drupal.org.git Facet removal button uniqueness. --- diff --git a/mkdru.module b/mkdru.module index 9610cd0..b363c02 100644 --- a/mkdru.module +++ b/mkdru.module @@ -238,7 +238,7 @@ function mkdru_settings_form(&$form_state) { ); $form['settings']['facets'][$facet]['remove'] = array( '#type' => 'submit', - '#value' => t('Remove facet'), + '#value' => t('Remove ') . $facet . t(' facet'), '#mkdru facet' => $facet, '#submit' => array('mkdru_remove_facet_submit'), '#ahah' => array( @@ -279,7 +279,6 @@ function mkdru_add_facet_submit($form, &$form_state) { } function mkdru_remove_facet_submit($form, &$form_state) { - dpm($form_state); $delfacet = $form_state['clicked_button']['#mkdru facet']; if ($delfacet) unset($form_state['values']['settings']['facets'][$delfacet]);