function l10n_client_search_form in Localization client 5
Same name and namespace in other branches
- 6.2 l10n_client.module \l10n_client_search_form()
- 6 l10n_client.module \l10n_client_search_form()
- 7 l10n_client.module \l10n_client_search_form()
1 string reference to 'l10n_client_search_form'
- l10n_client_footer in ./
l10n_client.module - Implementation of hook_footer().
File
- ./
l10n_client.module, line 290 - Localization client. Provides on-page translation editing.
Code
function l10n_client_search_form() {
global $language;
// Selector and editing form.
$form = array();
$form['search'] = array(
'#type' => 'textfield',
);
$form['search-button'] = array(
'#value' => "<input id='search-filter-go' class='form-submit' type='button' value='" . t('Search') . "'/>",
);
$form['clear-button'] = array(
'#value' => "<input id='search-filter-clear' class='form-submit' type='button' value='" . t('X') . "'/>",
);
return $form;
}