Re: [development] Rename *_load and friends
A patch for the HEAD developer docs is here: http://drupal.org/node/107225 While everything is still referred to as a "hook", the name placeholder in the last patch is altered to "method_". I think these *are* different from the other hooks, in that one module can implement an unlimited number of node hooks (e.g. mymodulename.module can implement story1_load(), page1_load(), press_release_load(), etc), whose names may be totally unrelated to the module name, but can only implement mymodulename_nodeapi(). if you don't like "method_" as an alternate placeholder, please post a better patch. -Peter
Peter Wolanin wrote:
A patch for the HEAD developer docs is here: http://drupal.org/node/107225
While everything is still referred to as a "hook", the name placeholder in the last patch is altered to "method_". I think these
Isn't method something you use in OO programming? http://en.wikipedia.org/wiki/Method_%28computer_science%29
*are* different from the other hooks, in that one module can implement an unlimited number of node hooks (e.g. mymodulename.module can implement story1_load(), page1_load(), press_release_load(), etc), whose names may be totally unrelated to the module name, but can only implement mymodulename_nodeapi().
Yeah. So what?
if you don't like "method_" as an alternate placeholder, please post a better patch.
I don't like it on the grounds that people coming from OO computing might become confused. People, stop making up your own terminology. Cheers, Gerhard
I have a view on the node table to show the Title, Create time, Update time, Type, Author name. www.ramapo2007.org/view/node_info However I am not given the opportunity on the view add field screen to add some of the other fields in the node table. What determines what fields are viewable? I would also like to show the name of the last person to change the node which doesn't seem to be stored in the node table (I think it should be). The only place I have seen it is in the watchdog table. The person who last modified information is almost always more interesting than the creator (at least to me). Speaking of the watchdog table, is anyone considering making changes to it for 6.0? I have some suggestions that I would like to see, e.g. other filters.
participants (3)
-
Gerhard Killesreiter -
Peter Wolanin -
Walt Daniels