You are here

function hook_course_has_settings in Course 6

Allow modules to restrict menu access to the course setting tab.

@todo why would we want this hook? Modules can already use hook_menu_alter().

Parameters

object $node: The course node.

object $user: The user to check access.

Return value

boolean Any hook returning FALSE will restrict access to the course settings tab.

See also

course_settings_menu_access()

1 invocation of hook_course_has_settings()
course_settings_menu_access in ./course.module
Menu access callback to determine if the course settings should tab should display on the course node.

File

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

Code

function hook_course_has_settings($node, $user) {

  // @todo add example.
}