function itoggle_help in iToggle 7.2
Same name and namespace in other branches
- 7 itoggle.module \itoggle_help()
Implements hook_help().
File
- ./
itoggle.module, line 28 - iToggle core module.
Code
function itoggle_help($path, $arg) {
switch ($path) {
case 'admin/config/itoggle':
return t('This is the iToggle configuration page. Override iToggle default settings here. To include the iToggle plugin yourself, just call itoggle_include_itoggle() from your code.');
break;
case 'admin/help#itoggle':
$output = '<h3>' . t('About') . '</h3><p>' . t('The iToggle module defines a Boolean field for storing items, for use with the Field module. This item is entered through an iToggle Widget. See the <a href="@field-help">Field module help page</a> for more information about fields.', array(
'@field-help' => url('admin/help/field'),
)) . '</p>';
if (module_exists('advanced_help')) {
$output .= '<p>' . l('Click here to view the documentation for iToggle.', 'admin/advanced_help/itoggle') . '</p>';
}
else {
$output .= '<p>' . t('iToggle help can be found by installing and enabling the !advanced_help', array(
'!advanced_help' => l('Advanced Help module', 'http://drupal.org/project/advanced_help'),
)) . '</p>';
}
return $output;
break;
}
}