diff options
author | Evan Prodromou <evan@status.net> | 2009-09-15 17:16:35 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-15 17:16:35 -0400 |
commit | 13147143fc830e81b80ae86bf4cc4f745ce04381 (patch) | |
tree | 7197e7c3437e028a1bc2358f38ac3964cf3fe6e9 /lib/plugin.php | |
parent | e559f82e86c495abdc4cf5fff3d8c6279a808354 (diff) | |
parent | 4081ed79b02fd06f7c347803478e1f835311c2ab (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/plugin.php')
-rw-r--r-- | lib/plugin.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/plugin.php b/lib/plugin.php index 87d7be5a7..59bf3ba9d 100644 --- a/lib/plugin.php +++ b/lib/plugin.php @@ -76,4 +76,18 @@ class Plugin { return true; } + + /* + * the name of the shortener + * shortenerInfo associative array with additional information. One possible element is 'freeService' which can be true or false + * shortener array, first element is the name of the class, second element is an array to be passed as constructor parameters to the class + */ + function registerUrlShortener($name, $shortenerInfo, $shortener) + { + global $_shorteners; + if(!is_array($_shorteners)){ + $_shorteners=array(); + } + $_shorteners[$name]=array('info'=>$shortenerInfo, 'callInfo'=>$shortener); + } } |