I was able to theme the form. Now I want to put a submission button into a <div>
, but I can't theme the submission button.
This code worked for the form.
print "text text text";
print drupal_render_children($variables["form"]);
Here is the code I used to theme the submission button.
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#attributes' => array('style' => "padding: 0 10px;"),
'#theme' => "submit",
);
function scores_theme($existing, $type, $theme, $path) {
$path = drupal_get_path('module', 'scores');
return array(
'submit' => array(
'render element' => 'submit',
'template' => 'submit',
'path' => $path,
),
);
}
What should I put into submit.tpl.php? Any of these doesn't work.
print drupal_render_children($submit);
print drupal_render($variables['submit']);
print drupal_render($submit);