You are here

function hook_course_outline_incomplete_links_alter in Course 7.2

Same name and namespace in other branches
  1. 8.3 course.api.php \hook_course_outline_incomplete_links_alter()
  2. 8.2 course.api.php \hook_course_outline_incomplete_links_alter()
  3. 7 course.api.php \hook_course_outline_incomplete_links_alter()
  4. 3.x course.api.php \hook_course_outline_incomplete_links_alter()

Allow modules to alter remaining incomplete links on the course completion landing page.

Parameters

array $links: Same as $links param for hook_course_outline_completion_links().

object $course_node: The course node object.

object $account: The user who just took the course.

See also

course_completion_page()

1 invocation of hook_course_outline_incomplete_links_alter()
course_completion_page in includes/course.outline.inc
Render a landing page for course completion.

File

./course.api.php, line 148
Hooks provided by Course module.

Code

function hook_course_outline_incomplete_links_alter(&$links, $course_node, $account) {

  // Example: change the default link.
  $links['course'] = array(
    t("Let's try that again"),
    "node/{$course_node->nid}/takecourse",
    t('Looks like you missed something.'),
  );
}