You are here

function CourseObjectQuiz::getCloneAbility in Course 6

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

File

modules/course_quiz/course_quiz.classes.inc, line 131

Class

CourseObjectQuiz

Code

function getCloneAbility() {
  return t('%object can only be partially cloned. It will be created with the same settings, but the without the questions', array(
    '%object' => $this
      ->getTitle(),
  ));
}