[documentation] [Documentation task] Update nodeapi_example.module for CVS HEAD

lyricnz drupal-docs at drupal.org
Sun Aug 27 02:50:09 UTC 2006


Issue status update for 
http://drupal.org/node/80894
Post a follow up: 
http://drupal.org/project/comments/add/80894

 Project:      Documentation
 Version:      <none>
 Component:    Documentation in CVS
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  lyricnz
 Updated by:   lyricnz
 Status:       active
 Attachment:   http://drupal.org/files/issues/nodeapi_example.module_1.patch (3.21 KB)

Attached patch updates
contributions/docs/developer/examples/nodeapi_example.module for CVS
HEAD.  Please review, especially the code that determines the
content-type:


  if ($form_id == 'node_type_form') {
    $type = $form['old_type']['#value'];
  } else {
    $type = $form['type']['#value'];
  }


This change relates to system-defined content-types not having
[type][#value] as described in http://drupal.org/node/80891




lyricnz



More information about the documentation mailing list