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.
/**
* Allows modules to specify a uri for a customer profile.
*
* When this hook is invoked, the first returned uri will be used for the
* customer profile. Thus to override the default value provided by the Customer
* UI module, you would need to adjust the order of hook invocation via
* hook_module_implements_alter() or your module weight values.
*
* @param $profile
* The customer profile object whose uri is being determined.
*
* @return
* The uri elements of an entity as expected to be returned by entity_uri()
* matching the signature of url().
*
* @see commerce_customer_profile_uri()
* @see hook_module_implements_alter()
* @see entity_uri()
* @see url()
*/
function hook_commerce_customer_profile_uri($order) {
// No example.
}
We can see the "@param $profile", and the real param is use the "$order". So i think they should be unified. Depending on the context , i think the "$profile" is better than the "$order". I hope you think so too.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce-fix_the_typo-1852922.patch | 856 bytes | Jerenus |
Comments
Comment #1
Jerenus CreditAttribution: Jerenus commentedHere is my patch.
Comment #2
rszrama CreditAttribution: rszrama commentedYep, good find. Committed! : )
Comment #3
Jerenus CreditAttribution: Jerenus commentedThanks!