Should promote the proper use of the Drupal APIs by using module_load_include() instead of include_once drupal_get_path('module', 'comment') .'/comment.admin.inc';, especially since module_load_include checks to see if the file has already been included and can skip the include_once call.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 506568-module-load-include.patch | 837 bytes | dave reid |
| #1 | 506568-module-load-include.patch | 698 bytes | dave reid |
Comments
Comment #1
dave reidOk, so I double checked and module_load_include() doesn't check to see if the file has already been included, but you never know, at some point that might be added. Still feels good to use the proper APIs.
Comment #2
dave reidFixing offset.
Comment #3
dave reidCommitted to CVS using a revised
module_load_include('inc', 'comment', 'comment.admin');