You are here

function l10n_client_search_form in Localization client 7

Same name and namespace in other branches
  1. 5 l10n_client.module \l10n_client_search_form()
  2. 6.2 l10n_client.module \l10n_client_search_form()
  3. 6 l10n_client.module \l10n_client_search_form()

Search form for string list

1 string reference to 'l10n_client_search_form'
l10n_client_page_alter in ./l10n_client.module
Implement hook_page_alter().

File

./l10n_client.module, line 432
Localization client. Provides on-page translation editing.

Code

function l10n_client_search_form() {
  global $language;

  // Selector and editing form.
  $form = array();
  $form['search'] = array(
    '#title' => t('Search'),
    '#title_display' => 'invisible',
    '#type' => 'textfield',
    '#attributes' => array(
      'class' => array(
        'string-search',
      ),
    ),
  );
  $form['clear-button'] = array(
    '#type' => 'button',
    '#id' => 'l10n-client-search-filter-clear',
    '#value' => t('X'),
  );
  return $form;
}