aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/config.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-05 17:54:19 -0700
committerfriendica <info@friendica.com>2012-05-05 17:54:19 -0700
commit47c3b43afd64cd1c05b67d347fb1219c42fe6d20 (patch)
tree9b3f2ae85a81c7983f6595679a370fc5a6815f1e /view/theme/diabook/config.php
parent49ccefd6c7add622ba84c72769a68d08ef043ef5 (diff)
parente1ab3a93cc450ca52c7651ecca8cad8334e5f1ce (diff)
downloadvolse-hubzilla-47c3b43afd64cd1c05b67d347fb1219c42fe6d20.tar.gz
volse-hubzilla-47c3b43afd64cd1c05b67d347fb1219c42fe6d20.tar.bz2
volse-hubzilla-47c3b43afd64cd1c05b67d347fb1219c42fe6d20.zip
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'view/theme/diabook/config.php')
-rw-r--r--view/theme/diabook/config.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/view/theme/diabook/config.php b/view/theme/diabook/config.php
index 2477bb3d3..e6c2681e3 100644
--- a/view/theme/diabook/config.php
+++ b/view/theme/diabook/config.php
@@ -13,8 +13,9 @@ function theme_content(&$a){
$line_height = get_pconfig(local_user(), 'diabook', 'line_height' );
$resolution = get_pconfig(local_user(), 'diabook', 'resolution' );
$color = get_pconfig(local_user(), 'diabook', 'color' );
+ $TSearchTerm = get_pconfig(local_user(), 'diabook', 'TSearchTerm' );
- return diabook_form($a,$font_size, $line_height, $resolution, $color);
+ return diabook_form($a,$font_size, $line_height, $resolution, $color, $TSearchTerm);
}
function theme_post(&$a){
@@ -26,6 +27,7 @@ function theme_post(&$a){
set_pconfig(local_user(), 'diabook', 'line_height', $_POST['diabook_line_height']);
set_pconfig(local_user(), 'diabook', 'resolution', $_POST['diabook_resolution']);
set_pconfig(local_user(), 'diabook', 'color', $_POST['diabook_color']);
+ set_pconfig(local_user(), 'diabook', 'TSearchTerm', $_POST['diabook_TSearchTerm']);
}
}
@@ -35,8 +37,9 @@ function theme_admin(&$a){
$line_height = get_config('diabook', 'line_height' );
$resolution = get_config('diabook', 'resolution' );
$color = get_config('diabook', 'color' );
+ $TSearchTerm = get_config('diabook', 'TSearchTerm' );
- return diabook_form($a,$font_size, $line_height, $resolution, $color);
+ return diabook_form($a,$font_size, $line_height, $resolution, $color, $TSearchTerm);
}
function theme_admin_post(&$a){
@@ -45,11 +48,12 @@ function theme_admin_post(&$a){
set_config('diabook', 'line_height', $_POST['diabook_line_height']);
set_config('diabook', 'resolution', $_POST['diabook_resolution']);
set_config('diabook', 'color', $_POST['diabook_color']);
+ set_config('diabook', 'TSearchTerm', $_POST['diabook_TSearchTerm']);
}
}
-function diabook_form(&$a, $font_size, $line_height, $resolution, $color){
+function diabook_form(&$a, $font_size, $line_height, $resolution, $color, $TSearchTerm){
$line_heights = array(
"1.3"=>"1.3",
"---"=>"---",
@@ -95,6 +99,7 @@ function diabook_form(&$a, $font_size, $line_height, $resolution, $color){
'$line_height' => array('diabook_line_height', t('Set line-height for posts and comments'), $line_height, '', $line_heights),
'$resolution' => array('diabook_resolution', t('Set resolution for middle column'), $resolution, '', $resolutions),
'$color' => array('diabook_color', t('Set color scheme'), $color, '', $colors),
+ '$TSearchTerm' => array('diabook_TSearchTerm', t('Set twitter search term'), $TSearchTerm, '', $TSearchTerm),
));
return $o;
}