You are here

function CourseObject::getCloneAbility in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObject.inc \CourseObject::getCloneAbility()
  2. 7 includes/CourseObject.inc \CourseObject::getCloneAbility()

Returns an translated error message if this object has issues with cloning.

Return value

mixed TRUE if cloning is supported, FALSE if cloning is not supported. A string if the object can clone but with caveats.

2 methods override CourseObject::getCloneAbility()
CourseObjectCertificate::getCloneAbility in modules/course_certificate/course_certificate.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectNode::getCloneAbility in includes/course_object.core.inc
Returns an translated error message if this object has issues with cloning.

File

includes/course_object.core.inc, line 900

Class

CourseObject
Parent abstract base class of all course objects.

Code

function getCloneAbility() {
  return t('The course object %object cannot be cloned. A new instance will be created.', array(
    '%object' => $this
      ->getTitle(),
  ));
}