function skinr_ui_help in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_ui/skinr_ui.module \skinr_ui_help()
- 6.2 skinr_ui.module \skinr_ui_help()
Implements hook_help().
1 call to skinr_ui_help()
- skinr_context_ui_help in skinr_context/
skinr_context_ui.module - Implements hook_help().
File
- ./
skinr_ui.module, line 215 - Handles Skinr UI functionality allowing users to apply skins to their site.
Code
function skinr_ui_help($path, $arg) {
if (module_exists('advanced_help')) {
$advanced_help = '<p>' . t('Visit the <a href="@skinr-help">help page</a> for full documentation.', array(
'@skinr-help' => url('admin/advanced_help/skinr'),
)) . '</p>';
}
else {
$advanced_help = '<p>' . t('Please download and enable the <a href="http://drupal.org/project/advanced_help">Advanced Help</a> module for full Skinr documentation.') . '</p>';
}
switch ($path) {
case 'admin/structure/skinr':
return '<p>' . t('Below is a list of all skin configurations in use on this site.') . '</p>' . $advanced_help;
case 'admin/structure/skinr/import':
return '<p>' . t('To import skin configurations, paste exported code and click the "Import" button.') . '</p>';
case 'admin/structure/skinr/export':
return '<p>' . t('To export skin configurations, ensure the correct theme is selected and click the "Export" button.') . '</p>';
case 'admin/structure/skinr/edit/%/%':
// @todo Make this help text more relevant.
$theme_hooks = skinr_theme_hooks($arg[4], $arg[5]);
return '<p>' . t('Manage which skins you want to apply to the hooks <strong>!hooks</strong>.', array(
'!hooks' => implode(', ', $theme_hooks),
)) . '</p>';
}
}