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

ericduran’s picture

Project: Rubik » Ubercart
Version: 7.x-4.0-beta4 » 7.x-3.x-dev

This 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.

longwave’s picture

Category: support » bug

Perhaps this text should be moved to hook_help() instead..

TR’s picture

Yes, 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

longwave’s picture

Status: Active » Fixed

Fixed the original request. This could probably be done for some other forms.

Status: Fixed » Closed (fixed)
Issue tags: -ubercart instructions rubik theme

Automatically closed -- issue fixed for 2 weeks with no activity.