Hi....the show summary in full view checkbox is not really needed for my site. It looks as if it is always checked by default and this is fine with me. I would rather not give users the option of unchecking it. Is there a way to hid this button (leaving it checked). I saw a php solution but didnt know if there was anything else....if not....can someone advise me on where i place this????

function _form_alter(&$form, $form_state, $form_id) {
if(isset($form['body_field']['teaser_include']) && preg_match('/.+_node_form$/i',$form_id)) {
unset($form['body_field']['teaser_include']);
}
}

Comments

brisath’s picture

Subscribing. I would like to get rid of this too, but I don't know how.

SuperContraXTC’s picture

I have having the same issue. Anyone has any luck hiding this option?

RikiB’s picture

Looks like that goes in your template.php file in the root of your theme folder. I tried it but it didnt seem to remove this checkbox. Where did you see this solution? Im trying to remove the checkbox too!

calebm12’s picture

here, comment 25
http://drupal.org/node/293803

also here
http://www.rhinocerus.net/node/38152

if you find a solution....pls share...would love to get rid of the checkbox!

calebm12’s picture

dont know if this will had bad effects elsewhere in the site but i got rid of it with css visibilty

.teaser-checkbox div.form-item {
  float: right; /* LTR */
  margin: 0 5% 0 0; /* LTR */
  padding: 0;
  visibility: hidden;
}
Dan Silver’s picture

that's exactly what I needed, thanks! And, it doesn't seem to cause any problems elsewhere :)

brisath’s picture

While searching for a solution to another issue, I happened upon http://drupal.org/project/resizable_body which also allows for removing the checkbox. It killed 2 birds! Nice module.

chicagotech’s picture

Similar to resizable_body mentioned by brisath, the Node and Comments Form Settings module also allows you to easily remove this checkbox, among many additional nice little form changes. I like this module. http://drupal.org/project/nodeformsettings