I have made a copy of book.module called kron.module and cant get the function theme_kron_form() to work.
I have added five more fields to the form. All fileds in the form $form['ev_something']. The problem that I'm having is that I'd like to be able to modify the layout of the form. I want to be able to have the $form['ev_year'] and all 'ev_xx' forms until $form['ev_minute'] fields next to one another instead of on top of one another.
My code is:
/**
* Implementation of hook_form().
*/
function kron_form(&$node) {
$type = node_get_types('type', $node);
if ($node->nid && !$node->parent && !user_access('create new krons')) {
$form['parent'] = array('#type' => 'value', '#value' => $node->parent);
}
else {
$form['parent'] = array('#type' => 'select',
'#title' => t('Parent'),
'#default_value' => ($node->parent ? $node->parent : arg(4)),
'#options' => kron_toc($node->nid),
'#weight' => -7,
'#description' => user_access('create new krons') ? t('The parent section in which to place this page. Note that each page whose parent is <top-level> is an independent, top-level kron.') : t('The parent that this page belongs in.'),
);
}
$form['title'] = array('#type' => 'textfield',
'#title' => check_plain($type->title_label),
'#required' => TRUE,