Removed preview button in comments of tasks and tickets
This commit is contained in:
parent
b2fdbde020
commit
03b8c7f6df
1 changed files with 3 additions and 0 deletions
|
@ -1303,6 +1303,9 @@ function storm_form_alter(&$form, $form_state, $form_id) {
|
||||||
if (isset($form['body_field']['teaser_include'])) {
|
if (isset($form['body_field']['teaser_include'])) {
|
||||||
unset($form['body_field']['teaser_include']);
|
unset($form['body_field']['teaser_include']);
|
||||||
}
|
}
|
||||||
|
if (in_array($node->type, array('stormtaskc', 'stormticketc'))) {
|
||||||
|
unset($form['buttons']['preview']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
|
if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
|
||||||
|
|
Reference in a new issue