From 8fbe27e679793f29c99bd581d10f7562fb65c74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 30 Jul 2009 16:06:15 +0200 Subject: [PATCH] Only show 'create new parent' link for applications --- include/application.php | 5 +++++ include/objectManager.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/application.php b/include/application.php index 4112c0b..2a1a704 100644 --- a/include/application.php +++ b/include/application.php @@ -1439,6 +1439,11 @@ class Application { return $iCount; } + public static function objectAllowMovingToNewParent() + { + return TRUE; + } + public static function allowAnonymousSubmissions() { return FALSE; diff --git a/include/objectManager.php b/include/objectManager.php index 4235279..3af090c 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -921,7 +921,8 @@ class ObjectManager $sClassDisplayName = $oParentOM->GetOptionalSetting('objectGetClassDisplayName', 'parent entry'); - echo '

Create and move to a new $sClassDisplayName

\n"; + if($this->GetOptionalSetting('objectAllowMovingToNewParent', false)) + echo '

Create and move to a new $sClassDisplayName

\n"; /* Display some help text */ echo "

Move ".$oObject->objectMakeLink()." to the $sClassDisplayName ";