aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/embed/start.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index e6fc5551b..f6f1acc57 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -32,6 +32,10 @@ function embed_init() {
* @return array
*/
function embed_longtext_menu($hook, $type, $items, $vars) {
+
+ if (elgg_get_context() == 'embed') {
+ return $items;
+ }
$items[] = ElggMenuItem::factory(array(
'name' => 'embed',