You are here

function l10n_client_search_form in Localization client 6.2

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

Search form for string list

1 string reference to 'l10n_client_search_form'
l10n_client_footer in ./l10n_client.module
Implementation of hook_footer().

File

./l10n_client.module, line 410
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',
    '#attributes' => array(
      'class' => 'string-search',
    ),
  );
  $form['clear-button'] = array(
    '#type' => 'button',
    '#id' => 'l10n-client-search-filter-clear',
    '#attributes' => array(
      'class' => 'form-submit',
    ),
    '#value' => t('X'),
  );
  return $form;
}