Closed (fixed)
Project:
Ubercart Addresses
Version:
6.x-2.x-dev
Component:
Address book
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2011 at 13:00 UTC
Updated:
17 Oct 2011 at 14:51 UTC
The link for adding a new address at the bottom of the address overview page has no class associated with it. Since this link is also not in any other way (reliably) recognizable, this makes it impossible to style it (to make it look more like a button, say).
To fix this, a class needs to be added. Could this be implemented?
--- uc_addresses.module (revision 1212)
+++ uc_addresses.module (working copy)
@@ -700,7 +700,7 @@
// on whether the current user can edit the addresses
if (user_access(UC_ADDRESSES_ACCESS_ADD_EDIT) || $user->uid == $uid) {
- $link = l(t('Add a new address'), 'user/'. $uid .'/addresses/add');
+ $link = l(t('Add a new address'), 'user/'. $uid .'/addresses/add', array('attributes' => array('class' => 'add-address-link')));
$output .= $link;
}
Comments
Comment #1
megachrizThis has been fixed in 6.x-2.x-dev.
Comment #2
rhmtts commentedThanks!