Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Does someone now to wrap the instruction on the top of ubercart admin pages into the nice collapsible help in the rubik theme?
for example, in the function uc_shipping_new_package its looks like this:
$form['instructions'] = array('#value' => t('Organize products into packages.
Package numbers in multiple shipping types are of the first shipping type they appear in. All
packages are given a unique ID when they are saved. Choose the default package "Sep." to
automatically create a package for each of the selected quantity of products in that row.'));
The message is wrapped in a div bit without a class.
Any Ideas how to assign the "help" class, so that the rubik theme can handle it?
Thanks for any input.
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedThis is actually a ubercart question.
Switch project from rubik -> to Ubercart.
That being said uc_shipping_new_package seems to be a form, so I'm assuming you can do a form_alter and change that $form['instructions'] array and add the class you want to add on it.
Comment #2
longwavePerhaps this text should be moved to hook_help() instead..
Comment #3
TR CreditAttribution: TR commentedYes, I think this is exactly what hook_help() is supposed to be used for. See the related task at #751976: Implement hook_help() for all Ubercart modules
Comment #4
longwaveFixed the original request. This could probably be done for some other forms.