function apachesolr_multilingual_admin_form_validate_reindex in Apache Solr Multilingual 6.2
Same name and namespace in other branches
- 6 apachesolr_multilingual.admin.inc \apachesolr_multilingual_admin_form_validate_reindex()
1 string reference to 'apachesolr_multilingual_admin_form_validate_reindex'
- apachesolr_multilingual_admin_form in ./
apachesolr_multilingual.admin.inc - @file Admin settings for Apache Solr Multilingual.
File
- ./
apachesolr_multilingual.admin.inc, line 406 - Admin settings for Apache Solr Multilingual.
Code
function apachesolr_multilingual_admin_form_validate_reindex($element, $form_state) {
static $msg_sent = FALSE;
if (!$msg_sent) {
if ($element['#value'] != $element['#default_value']) {
drupal_set_message(t('Changing "%title" requires you to !link_reindex your content.', array(
'%title' => $element['#title'],
'!link_reindex' => l(t('re-index'), 'admin/settings/apachesolr/index'),
)), 'warning');
$msg_sent = TRUE;
}
}
}