From 68f44dad8236c28106803898c894b8b9faa9c86f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 29 Dec 2010 14:02:31 -0800 Subject: [PATCH] Add link to delicious bookmark importer to profile settings --- plugins/Bookmark/BookmarkPlugin.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index a714adc984..dc57b00e13 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -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]; -- 2.39.5