Only show 'create new parent' link for applications
This commit is contained in:
@@ -1439,6 +1439,11 @@ class Application {
|
|||||||
return $iCount;
|
return $iCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function objectAllowMovingToNewParent()
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
public static function allowAnonymousSubmissions()
|
public static function allowAnonymousSubmissions()
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
@@ -921,7 +921,8 @@ class ObjectManager
|
|||||||
|
|
||||||
$sClassDisplayName = $oParentOM->GetOptionalSetting('objectGetClassDisplayName', 'parent entry');
|
$sClassDisplayName = $oParentOM->GetOptionalSetting('objectGetClassDisplayName', 'parent entry');
|
||||||
|
|
||||||
echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
|
if($this->GetOptionalSetting('objectAllowMovingToNewParent', false))
|
||||||
|
echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
|
||||||
|
|
||||||
/* Display some help text */
|
/* Display some help text */
|
||||||
echo "<p>Move ".$oObject->objectMakeLink()." to the $sClassDisplayName ";
|
echo "<p>Move ".$oObject->objectMakeLink()." to the $sClassDisplayName ";
|
||||||
|
|||||||
Reference in New Issue
Block a user