most l10n form buttons are not themable with my-theme_button in template.php because they are not correctly defined in l10n_client.module.

Fix: change things like:
$form['copy'] = array(
'#value' => "",
);
into:
$form['copy'] = array(
'#value' => t('Copy Source') ,
'#type' =>'button',
'#id' =>'edit-copy',
);

Comments

gábor hojtsy’s picture

Have you actually tried this? I believe this will theme them as buttons which might not be what we want.

wouter99999’s picture

Dear Gábor,
yes, I tried it and it worked for me. For the submit button it is already done correctly in l10nclient.module.

Wouter

gábor hojtsy’s picture

Version: 6.x-1.7 » 7.x-1.x-dev
Status: Active » Patch (to be ported)
StatusFileSize
new3.16 KB

It is all too logical to use the theme API properly, so themes can style buttons as they wish. However using #type => button makes the buttons actual submit types. So we should counter that by returning false from their click handlers. Then they behave like before but are much more standardized and support theming as you wish. Committing to D6 and needs porting to D7.

gábor hojtsy’s picture

Status: Patch (to be ported) » Fixed
StatusFileSize
new2.62 KB

Here is the D7 port. Committing.

Status: Fixed » Closed (fixed)

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