Ho bisogno di fare questo, ma con forme Drupal:Come posso creare un pulsante Indietro con Drupal form API?
<input type="button" class="button-user" value="Back" onclick="location.href='edit'"/>
Ho provato a fare questo, ma non ha funzionato:
$form['back']['#prefix'] = "<input type='button' class='button-user' value='Back' onclick='location.href='edit''/>;
e anche:
$form['back'] = array(
'#type' => 'button',
'#value' => 'Back',
'#attributes' => array(
'class' => 'button-user',
'onclick' => 'location.href=edit',
)
);
mai chiudere il primo con le virgolette '" ' – switz