minor tweaks
This commit is contained in:
@@ -72,13 +72,15 @@ function booking_travel_page()
|
||||
'form' => drupal_get_form('travel_form', true, $node->nid)
|
||||
);
|
||||
//text after form
|
||||
/*
|
||||
$afterform_text = variable_get('booking_travelform_page_post_text');
|
||||
$return_array[] = array(
|
||||
'paragraph' => array(
|
||||
'#type' => 'markup',
|
||||
'#markup' => token_replace($afterform_text['value'], $tokens),
|
||||
)
|
||||
);
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
return $return_array;
|
||||
@@ -332,6 +334,13 @@ function travel_form($node, &$form_state, $inserting = FALSE, $nid = 0)
|
||||
}
|
||||
|
||||
if ($inserting == TRUE) {
|
||||
//add some html just before the submit button
|
||||
$afterform_text = variable_get('booking_travelform_page_post_text');
|
||||
$form['post-text'] = array(
|
||||
'#type' => 'container',
|
||||
'#children' => token_replace($afterform_text['value'], $tokens),
|
||||
);
|
||||
//include the submit button
|
||||
$form['submit'] = array(
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Submit')
|
||||
|
Reference in New Issue
Block a user