Created
November 4, 2010 17:12
-
-
Save webflo/662783 to your computer and use it in GitHub Desktop.
Disable teaser include by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function foo_form_alter(&$form, $form_state, $form_id) { | |
if ($form['#id'] == 'node-form' && in_array($form['#node']->type, array('story', 'page', 'bar'))) { | |
$form['body_field']['teaser_include']['#default_value'] = FALSE; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment