function uc_attribute_help in Ubercart 5
Same name and namespace in other branches
- 8.4 uc_attribute/uc_attribute.module \uc_attribute_help()
- 6.2 uc_attribute/uc_attribute.module \uc_attribute_help()
- 7.3 uc_attribute/uc_attribute.module \uc_attribute_help()
Implementation of hook_help().
File
- uc_attribute/
uc_attribute.module, line 25
Code
function uc_attribute_help($section) {
switch ($section) {
// Help messages for the attributes overview on products and classes.
case 'node/' . arg(1) . '/edit/attributes':
return t('Add attributes to this product using the <a href="!url">add attributes form</a>. You may then adjust the settings for these attributes on this page and go on to configure their options in the <em>Options</em> tab.', array(
'!url' => url('node/' . arg(1) . '/edit/attributes/add'),
));
case 'admin/store/products/classes/' . arg(4) . '/attributes':
return t('Add attributes to the product class using the <a href="!url">add attributes form</a>. You may then adjust the settings for these attributes on this page and go on to configure their options in the <em>Options</em> tab.', array(
'!url' => url('admin/store/products/classes/' . arg(4) . '/attributes/add'),
));
// Help message for adding an attribute to a product or class.
case 'node/' . arg(1) . '/edit/attributes/add':
case 'admin/store/products/classes/' . arg(4) . '/attributes/add':
return t('Select the attributes you want to add and submit the form.');
// Help message for adjusting the options on a product or class.
case 'node/' . arg(1) . '/edit/options':
case 'admin/store/products/classes/' . arg(4) . '/options':
return t('Use the checkboxes to enable options for attributes and the radio buttons to specify defaults for the enabled options. Use the other fields to override the default settings for each option. Attributes with no enabled options will be displayed as text fields.');
// Help message for the product Adjustments tab.
case 'node/' . arg(1) . '/edit/adjustments':
return t('Enter an alternate SKU to be used when the specified set of options are chosen and the product is added to the cart. <b>Warning:</b> Adding or removing attributes from this product will reset all the SKUs on this page to the default product SKU.');
}
}