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];