User login

Do not display log message

Do not show the log message input box, "An explanation of the additions or updates being made to help other authors understand your motivations."

oh well... form_alter can do it.

http://api.drupal.org/api/function/node_form/5

Now implemented in Agaric Design Collective's form_tweak module (not released on drupal.org yet, as I'm not sure about the protocol of modules you have to edit source code to use)

(Or if not there, for sure Agaric put it in the custom wsf_action module)

Resolution

Searched words: 
drupal do not display log message drupal do not display log message on form drupal hide log message on form

Comments

From wsf_action module, this

From wsf_action module, this does work:

/*
* Implementation of hook_form_alter()
*
*/
function wsf_action_form_alter($form_id, &$form) {
  switch ($form['#id']) {
    // case 'node-form':  // not needed thankfully for this...
    // NO BREAK - intentional
    case 'user_register':
    case 'profile_node_form':
        $form['profile']['#collapsible'] = 0;
        $form['body_filter']['body']['#rows'] = 5;
        $form['log']['#type'] = 'hidden';
      break;
  }
}

Can't get the body_filter with fewer rows (a shorter form) to work on just the user_register/profile_node_form though.

Using drupal_set_message("Form ID: " . $form_id); and drupal_set_message('<pre>' . print_r($form, TRUE) . '</pre>'); to debug.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.