aboutsummaryrefslogtreecommitdiff
path: root/mod/twitterservice
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 01:04:42 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 01:04:42 +0000
commit3a6e0dc6e80434789abe5b98e2748a6fc79bf320 (patch)
treecec93c9f5635bb1b41006f157adb9f600a448110 /mod/twitterservice
parent0a3ba94a2805b8550c45f3fbf9dc9df148ff03a5 (diff)
downloadelgg-3a6e0dc6e80434789abe5b98e2748a6fc79bf320.tar.gz
elgg-3a6e0dc6e80434789abe5b98e2748a6fc79bf320.tar.bz2
Registering forward() calls to a plugin-specific reason for use in plugin hooks.
git-svn-id: http://code.elgg.org/elgg/trunk@8126 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/twitterservice')
-rw-r--r--mod/twitterservice/twitterservice_lib.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/twitterservice/twitterservice_lib.php b/mod/twitterservice/twitterservice_lib.php
index b302dcf43..7e8004215 100644
--- a/mod/twitterservice/twitterservice_lib.php
+++ b/mod/twitterservice/twitterservice_lib.php
@@ -35,7 +35,7 @@ function twitterservice_forward() {
$callback = elgg_normalize_url("pg/twitterservice/login");
$request_link = twitterservice_get_authorize_url($callback);
- forward($request_link);
+ forward($request_link, 'twitterservice');
}
function twitterservice_login() {
@@ -135,7 +135,7 @@ function twitterservice_login() {
system_message(elgg_echo('twitterservice:login:error'));
}
- forward($forward);
+ forward($forward, 'twitterservice');
} elseif (count($users) == 1) {
if (login($users[0])) {
system_message(elgg_echo('twitterservice:login:success'));
@@ -194,7 +194,7 @@ function twitterservice_authorize() {
$token = twitterservice_get_access_token();
if (!isset($token['oauth_token']) || !isset($token['oauth_token_secret'])) {
register_error(elgg_echo('twitterservice:authorize:error'));
- forward('pg/settings/plugins');
+ forward('pg/settings/plugins', 'twitterservice');
}
// only one user per tokens
@@ -218,7 +218,7 @@ function twitterservice_authorize() {
elgg_set_plugin_user_setting('access_secret', $token['oauth_token_secret']);
system_message(elgg_echo('twitterservice:authorize:success'));
- forward('pg/settings/plugins');
+ forward('pg/settings/plugins', 'twitterservice');
}
function twitterservice_revoke() {
@@ -228,7 +228,7 @@ function twitterservice_revoke() {
clear_plugin_usersetting('access_secret');
system_message(elgg_echo('twitterservice:revoke:success'));
- forward('pg/settings/plugins');
+ forward('pg/settings/plugins', 'twitterservice');
}
function twitterservice_get_authorize_url($callback=NULL) {