Translate pending values
This commit is contained in:
parent
80408e0950
commit
f3f8f0c61e
1 changed files with 4 additions and 4 deletions
|
@ -158,11 +158,11 @@ function custom_search_form_alter(&$form, $form_state, $form_id) {
|
||||||
if (user_access('use custom search')) {
|
if (user_access('use custom search')) {
|
||||||
|
|
||||||
// Title.
|
// Title.
|
||||||
$form[$form_id]['#title'] = variable_get('custom_search_' . $delta . 'label', CUSTOM_SEARCH_LABEL_DEFAULT);
|
$form[$form_id]['#title'] = t(variable_get('custom_search_' . $delta . 'label', CUSTOM_SEARCH_LABEL_DEFAULT));
|
||||||
if (!variable_get('custom_search_' . $delta . 'label_visibility', TRUE)) $form[$form_id]['#post_render'] = array('_custom_search_hide_label');
|
if (!variable_get('custom_search_' . $delta . 'label_visibility', TRUE)) $form[$form_id]['#post_render'] = array('_custom_search_hide_label');
|
||||||
|
|
||||||
// Search box.
|
// Search box.
|
||||||
$form[$form_id]['#default_value'] = variable_get('custom_search_' . $delta . 'text', '');
|
$form[$form_id]['#default_value'] = t(variable_get('custom_search_' . $delta . 'text', ''));
|
||||||
$form[$form_id]['#weight'] = variable_get('custom_search_' . $delta . 'search_box_weight', 0);
|
$form[$form_id]['#weight'] = variable_get('custom_search_' . $delta . 'search_box_weight', 0);
|
||||||
if (!isset($form[$form_id]['#attributes']['class'])) $form[$form_id]['#attributes']['class'] = '';
|
if (!isset($form[$form_id]['#attributes']['class'])) $form[$form_id]['#attributes']['class'] = '';
|
||||||
$form[$form_id]['#attributes']['class'] .= ' custom-search-default-value custom-search-box';
|
$form[$form_id]['#attributes']['class'] .= ' custom-search-default-value custom-search-box';
|
||||||
|
@ -172,7 +172,7 @@ function custom_search_form_alter(&$form, $form_state, $form_id) {
|
||||||
// Default text.
|
// Default text.
|
||||||
$form['default_text'] = array(
|
$form['default_text'] = array(
|
||||||
'#type' => 'hidden',
|
'#type' => 'hidden',
|
||||||
'#default_value' => variable_get('custom_search_' . $delta . 'text', ''),
|
'#default_value' => t(variable_get('custom_search_' . $delta . 'text', '')),
|
||||||
'#attributes' => array('class' => 'default-text'),
|
'#attributes' => array('class' => 'default-text'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ function custom_search_form_alter(&$form, $form_state, $form_id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Submit button.
|
// Submit button.
|
||||||
$form['submit']['#value'] = variable_get('custom_search_' . $delta . 'submit_text', CUSTOM_SEARCH_SUBMIT_TEXT_DEFAULT);
|
$form['submit']['#value'] = t(variable_get('custom_search_' . $delta . 'submit_text', CUSTOM_SEARCH_SUBMIT_TEXT_DEFAULT));
|
||||||
|
|
||||||
if (variable_get('custom_search_' . $delta . 'image_path', '') != '') {
|
if (variable_get('custom_search_' . $delta . 'image_path', '') != '') {
|
||||||
$form['submit']['#type'] = 'image_button';
|
$form['submit']['#type'] = 'image_button';
|
||||||
|
|
Reference in a new issue