function hook_uc_order_actions_alter in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_order/uc_order.api.php \hook_uc_order_actions_alter()
Allows the local task icons for orders to be altered.
Parameters
&$actions: A set of actions as defined in hook_uc_order_actions().
$order: An order object.
1 invocation of hook_uc_order_actions_alter()
- uc_order_actions in uc_order/
uc_order.module - Returns the actions a user may perform on an order.
File
- uc_order/
uc_order.api.php, line 243 - Hooks provided by the Order module.
Code
function hook_uc_order_actions_alter(&$actions, $order) {
foreach ($actions as &$action) {
$action['classes'][] = 'custom-action-class';
}
}