function CourseObjectNode::getCloneAbility in Course 7
Same name and namespace in other branches
- 6 includes/course_object.core.inc \CourseObjectNode::getCloneAbility()
- 7.2 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.
File
- includes/
CourseObjectNode.inc, line 388
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(),
));
}