]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add link to delicious bookmark importer to profile settings
authorEvan Prodromou <evan@status.net>
Wed, 29 Dec 2010 22:02:31 +0000 (14:02 -0800)
committerEvan Prodromou <evan@status.net>
Wed, 29 Dec 2010 22:02:31 +0000 (14:02 -0800)
plugins/Bookmark/BookmarkPlugin.php

index a714adc984eeb03545ffe1f1fd6ab727c12d19c3..dc57b00e13dda075fbb1857ec710f33a26ada53d 100644 (file)
@@ -573,6 +573,21 @@ class BookmarkPlugin extends Plugin
         return true;
     }
 
+    function onEndProfileSettingsActions($action)
+    {
+        $user = common_current_user();
+        
+        if (!empty($user) && $user->hasRight(self::IMPORTDELICIOUS)) {
+            $action->elementStart('li');
+            $action->element('a',
+                             array('href' => common_local_url('importdelicious')),
+                             _('Import del.icio.us bookmarks'));
+            $action->elementEnd('li');
+        }
+
+        return true;
+    }
+
     static private function _postRemoteBookmark(Ostatus_profile $author, Activity $activity)
     {
         $bookmark = $activity->objects[0];