All pastes #613135 Raw Edit

Gurpartap Singh

public php v1 · immutable
·published 2007-07-10 20:38 UTC
rendered paste body
<?php/** * Implementation of hook_form_alter(). * Set the input format expanded by default. */function custom_form_alter($form_id, &$form) {  if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {    $form['body_filter']['format']['#collapsed'] = 0;  }}