diff options
Diffstat (limited to 'mod/twitterservice/views')
-rw-r--r-- | mod/twitterservice/views/default/settings/twitterservice/edit.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mod/twitterservice/views/default/settings/twitterservice/edit.php b/mod/twitterservice/views/default/settings/twitterservice/edit.php index 7e43762ce..f84710af3 100644 --- a/mod/twitterservice/views/default/settings/twitterservice/edit.php +++ b/mod/twitterservice/views/default/settings/twitterservice/edit.php @@ -1,6 +1,6 @@ <?php /** - * + * */ $insert_view = elgg_view('twittersettings/extend'); @@ -28,11 +28,22 @@ $sign_on_with_twitter_view = elgg_view('input/dropdown', array( 'value' => $vars['entity']->sign_on ? $vars['entity']->sign_on : 'no', )); +$new_users_with_twitter = elgg_echo('twitterservice:new_users'); +$new_users_with_twitter_view = elgg_view('input/dropdown', array( + 'internalname' => 'params[new_users]', + 'options_values' => array( + 'yes' => elgg_echo('option:yes'), + 'no' => elgg_echo('option:no'), + ), + 'value' => $vars['entity']->new_users ? $vars['entity']->new_users : 'no', +)); + $settings = <<<__HTML <div>$insert_view</div> <div>$consumer_key_string $consumer_key_view</div> <div>$consumer_secret_string $consumer_secret_view</div> <div>$sign_on_with_twitter_string $sign_on_with_twitter_view</div> +<div>$new_users_with_twitter $new_users_with_twitter_view</div> __HTML; echo $settings; |