I have created a form that has a submit button.
$form['products_submit'] = array(
'#type' => 'submit',
"#id" => "submit_first",
'#value' => t('Submit'),
'#ajax' => array(
'callback' => 'products_submit_driven_callback',
'method' => 'replace',
'effect' => 'fade',
'progress' => array('type' => 'none'),
),
'#prefix' => '<div class="button-logged-in">',
'#suffix' => '</div>'
);
return $form;
And I want to add an image inside the button, at the left of 'Submit' text. I tried to add the img tag inside the t function but it just showed the code and not the image. Does anyone know how can I manage this?