Skip to content
Snippets Groups Projects
Commit f276f7f9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Stripped white-space.

parent 816dc903
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -104,7 +104,7 @@ function search_menu($may_cache) { ...@@ -104,7 +104,7 @@ function search_menu($may_cache) {
*/ */
function search_admin() { function search_admin() {
if ($_POST) { if ($_POST) {
if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size'] || if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size'] ||
variable_get('remove_short', 3) != $_POST['edit']['remove_short']) { variable_get('remove_short', 3) != $_POST['edit']['remove_short']) {
// Note: ensure logical order of messages // Note: ensure logical order of messages
system_settings_save(); system_settings_save();
...@@ -125,7 +125,7 @@ function search_admin() { ...@@ -125,7 +125,7 @@ function search_admin() {
$remaining += $status['remaining']; $remaining += $status['remaining'];
$total += $status['total']; $total += $status['total'];
} }
} }
$percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) . '%'; $percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) . '%';
$status = '<p><strong>'. t('%percentage of the site has been indexed. There are %count items left to index.', array('%percentage' => $percentage, '%count' => $remaining)) .'</strong></p>'; $status = '<p><strong>'. t('%percentage of the site has been indexed. There are %count items left to index.', array('%percentage' => $percentage, '%count' => $remaining)) .'</strong></p>';
$output = form_group('Indexing status', $status); $output = form_group('Indexing status', $status);
...@@ -561,7 +561,7 @@ function search_view() { ...@@ -561,7 +561,7 @@ function search_view() {
* HTML indexing mechanism for searching full text efficiently. * HTML indexing mechanism for searching full text efficiently.
* *
* If your module needs to provide a more complicated search form, then you need * If your module needs to provide a more complicated search form, then you need
* to implement it yourself without hook_search(). In that case, you should * to implement it yourself without hook_search(). In that case, you should
* define it as a local task (tab) under the /search page (e.g. /search/mymodule) * define it as a local task (tab) under the /search page (e.g. /search/mymodule)
* so that users can easily find it. * so that users can easily find it.
*/ */
......
...@@ -104,7 +104,7 @@ function search_menu($may_cache) { ...@@ -104,7 +104,7 @@ function search_menu($may_cache) {
*/ */
function search_admin() { function search_admin() {
if ($_POST) { if ($_POST) {
if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size'] || if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size'] ||
variable_get('remove_short', 3) != $_POST['edit']['remove_short']) { variable_get('remove_short', 3) != $_POST['edit']['remove_short']) {
// Note: ensure logical order of messages // Note: ensure logical order of messages
system_settings_save(); system_settings_save();
...@@ -125,7 +125,7 @@ function search_admin() { ...@@ -125,7 +125,7 @@ function search_admin() {
$remaining += $status['remaining']; $remaining += $status['remaining'];
$total += $status['total']; $total += $status['total'];
} }
} }
$percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) . '%'; $percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) . '%';
$status = '<p><strong>'. t('%percentage of the site has been indexed. There are %count items left to index.', array('%percentage' => $percentage, '%count' => $remaining)) .'</strong></p>'; $status = '<p><strong>'. t('%percentage of the site has been indexed. There are %count items left to index.', array('%percentage' => $percentage, '%count' => $remaining)) .'</strong></p>';
$output = form_group('Indexing status', $status); $output = form_group('Indexing status', $status);
...@@ -561,7 +561,7 @@ function search_view() { ...@@ -561,7 +561,7 @@ function search_view() {
* HTML indexing mechanism for searching full text efficiently. * HTML indexing mechanism for searching full text efficiently.
* *
* If your module needs to provide a more complicated search form, then you need * If your module needs to provide a more complicated search form, then you need
* to implement it yourself without hook_search(). In that case, you should * to implement it yourself without hook_search(). In that case, you should
* define it as a local task (tab) under the /search page (e.g. /search/mymodule) * define it as a local task (tab) under the /search page (e.g. /search/mymodule)
* so that users can easily find it. * so that users can easily find it.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment