Skip navigation
Help

hook_uc_order_actions_alter

7 uc_order.api.php hook_uc_order_actions_alter(&$actions, $order)

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.

Related topics

1 invocation of hook_uc_order_actions_alter()

File

ubercart/uc_order/uc_order.api.php, line 244
Hooks provided by the Order module.

Code

function hook_uc_order_actions_alter(&$actions, $order) {
  foreach ($actions as &$action) {
    $action['classes'][] = 'custom-action-class';
  }
}