You are here

function CourseObjectNode::getCloneAbility in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObjectNode.inc \CourseObjectNode::getCloneAbility()
  2. 7 includes/CourseObjectNode.inc \CourseObjectNode::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.

Overrides CourseObject::getCloneAbility

6 methods override CourseObjectNode::getCloneAbility()
CourseObjectBook::getCloneAbility in modules/course_book/course_book.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectPoll::getCloneAbility in modules/course_poll/course_poll.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectQuiz::getCloneAbility in modules/course_quiz/course_quiz.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectSignup::getCloneAbility in modules/course_signup/course_signup.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectUbercart::getCloneAbility in modules/course_uc/course_uc.classes.inc
Returns an translated error message if this object has issues with cloning.

... See full list

File

includes/course_object.core.inc, line 1327

Class

CourseObjectNode
A course object that uses a node as a base.

Code

function getCloneAbility() {
  return t('%object will be cloned as a node. Results may vary.', array(
    '%object' => $this
      ->getTitle(),
  ));
}