* Copyright (C) 2011, StatusNet, Inc.
*
* Form for searching a StatusNet site
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class SearchForm extends Form
{
/**
*
* @return void
*/
-
function formData()
{
$this->out->element('input', array('name' => 'q',
*
* @return void
*/
-
function formActions()
{
$this->out->element('input', array('type' => 'submit',
- 'value' => _('Search')));
+ // TRANS: Button text for search button on search form.
+ 'value' => _m('BUTTON','Search')));
}
/**
*
* @return int ID of the form
*/
-
function id()
{
- return 'search';
+ return 'header-search';
}
/**
*
* @return string URL to post to
*/
-
function action()
{
return common_local_url('noticesearch');
{
return 'get';
}
-
- function sessionToken()
- {
- return;
- }
}