Commit 4c076cdc authored by Steven Jones's avatar Steven Jones

Issue #1435340 by Steven Jones: Fixed node param 'created' is refreshed on node_save().

parent 642ce484
......@@ -760,14 +760,14 @@ function hosting_form_alter(&$form, &$form_state, $form_id) {
$node_types = array('site', 'platform', 'server', 'client');
foreach ($node_types as $type) {
if ($form_id == $type . '_node_form') {
unset($form['options']);
unset($form['menu']);
unset($form['revision_information']);
unset($form['author']);
unset($form['comment_settings']);
$form['options']['#access'] = FALSE;
$form['menu']['#access'] = FALSE;
$form['revision_information']['#access'] = FALSE;
$form['author']['#access'] = FALSE;
$form['comment_settings']['#access'] = FALSE;
// because these aren't really posts, 'preview' doesnt make sense in this context.
unset($form['buttons']['preview']);
$form['buttons']['preview']['#access'] = FALSE;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment