function uc_cart_links_help in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_cart_links/uc_cart_links.module \uc_cart_links_help()
Implements hook_help().
File
- uc_cart_links/
uc_cart_links.module, line 12 - Allows store owners to create links to add products to carts and send customers on to checkout.
Code
function uc_cart_links_help($section = 'admin/help#uc_cart_links', $arg = NULL) {
switch ($section) {
case 'admin/store/settings/cart-links':
if (module_exists('help')) {
return '<p>' . t('<a href="!url">View the help page</a> to learn how to create Cart Links.', array(
'!url' => url('admin/help/uc_cart_links'),
)) . '</p>';
}
break;
case 'admin/help#uc_cart_links':
case 'admin/help/cart-links':
module_load_include('inc', 'uc_cart_links', 'uc_cart_links.admin');
$build = uc_cart_links_creation_help();
return drupal_render($build);
}
}