You are here

function theme_course_take_course_button in Course 7.2

Same name and namespace in other branches
  1. 7 includes/course.theme.inc \theme_course_take_course_button()

Generate a button for taking the course.

2 theme calls to theme_course_take_course_button()
course_course_access in ./course.module
Implements hook_course_access().
course_node_view in ./course.module
Implements hook_node_view().

File

includes/course.theme.inc, line 19

Code

function theme_course_take_course_button($variables) {
  $node = $variables['node'];
  $link = '<div class="course-take-course-link-wrapper">' . l(t('Take course'), "node/{$node->nid}/takecourse", array(
    'attributes' => array(
      'class' => array(
        'course-take-course-link',
      ),
    ),
  )) . '</div>';
  return $link;
}