| 1 |
<?php |
<?php |
| 2 |
// $Id: serapi.module,v 1.5 2008/11/05 11:32:55 yaph Exp $ |
// $Id: serapi.module,v 1.6 2008/11/05 21:50:42 yaph Exp $ |
|
error_reporting(E_ALL); |
|
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Returns an array with information on the performed search |
* Returns an array with information on the performed search |
| 122 |
function serapi_block_search_engine_information() { |
function serapi_block_search_engine_information() { |
| 123 |
$search_info = serapi_get_search(); |
$search_info = serapi_get_search(); |
| 124 |
if (false !== $search_info) { |
if (false !== $search_info) { |
| 125 |
return t('You came from @host and search for !search_link.', |
return t('You came from @host and searched for !search_link.', |
| 126 |
array('@host' => $search_info['host'], |
array('@host' => $search_info['host'], |
| 127 |
'!search_link' => l(check_plain($search['string']), |
'!search_link' => l(check_plain($search_info['string']), |
| 128 |
check_url($search['url']), |
check_url($search_info['url']), |
| 129 |
array('attributes' => array('rel' => 'nofollow'))) |
array('attributes' => array('rel' => 'nofollow'))) |
| 130 |
) |
) |
| 131 |
); |
); |