function legal_help in Legal 6.8
Same name and namespace in other branches
- 8 legal.module \legal_help()
- 5 legal.module \legal_help()
- 6.7 legal.module \legal_help()
- 7.2 legal.module \legal_help()
- 7 legal.module \legal_help()
- 2.0.x legal.module \legal_help()
Implementation of hook_help().
File
- ./
legal.module, line 14 - Displays Terms & Conditions, and makes sure they are accepted before registration is accepted.
Code
function legal_help($path, $arg) {
$output = '';
switch ($path) {
case 'admin/help#legal':
$output .= t('Display a Terms & Conditions statement on the registration page, require visitor to accept T&C to register.
When a user creates an account they are required to accept your Terms & Conditions to complete their registration.');
break;
case 'admin/settings/legal':
$output .= t('Display a Terms & Conditions statement on the registration page, require visitor to accept the T&C to register.
A <a href="@page">page</a> displaying your T&C will be automatically created, access to this page can be set via the <a href="@access">permissions</a> administration page.', array(
'@page' => url('legal'),
'@access' => url('admin/user/permissions'),
));
}
return $output;
}