aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-04 17:35:06 -0700
committerFriendika <info@friendika.com>2011-09-04 17:35:06 -0700
commit481853d2cc44a4bf6c540e72c741ff453305a925 (patch)
treec29357adbc460d0e3096ef57e2a4844d44eaaef1 /include/text.php
parentf6a43afb8da061ac13d778eb7fba6e2ea6dda6d7 (diff)
downloadvolse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.tar.gz
volse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.tar.bz2
volse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.zip
saved searches on network page
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 66447069e..e3d984a1f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -602,12 +602,14 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
if(! function_exists('search')) {
-function search($s,$id='search-box',$url='/search') {
+function search($s,$id='search-box',$url='/search',$save = false) {
$a = get_app();
$o = '<div id="' . $id . '">';
$o .= '<form action="' . $a->get_baseurl() . $url . '" method="get" >';
$o .= '<input type="text" name="search" id="search-text" value="' . $s .'" />';
$o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
+ if($save)
+ $o .= '<input type="submit" name="save" id="search-save" value="' . t('Save') . '" />';
$o .= '</form></div>';
return $o;
}}