[documentation] [bug] $op = "prepare" not listed on hook_nodeapi docs

dman drupal-docs at drupal.org
Sat Feb 25 02:23:21 UTC 2006


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

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  fax8
 Updated by:   dman
 Status:       active

Seconded!
I found it mentioned over in the upgrade overview [1] and it seems that
as op=validate doesn't take modifications anymore that "prepare" must be
where I'm supposed to do that. ... but it doesn't.
The HEAD docs [2] still have the old version. (this is why I hate
putting docs in different places than the code, although I know it's
neccessary sometimes)


node.module has

<?php
/**
 * Apply filters to a node in preparation for theming.
 */
function node_prepare($node, $teaser = FALSE) {
?>


... which is not what I'm looking for at all (I thought).


I'm updating htmltidy.module, and I used to be able to correct users
markup on-the-fly as they previewed it. (by validating *and fixing* the
HTML on 'validate')


Do I have to to that in op=form now (feels wrong) or what?


.dan.
[1] http://drupal.org/node/22218#node_hook_order
[2] http://drupaldocs.org/api/head/function/hook_nodeapi




dman



Previous comments:
------------------------------------------------------------------------

Wed, 01 Feb 2006 23:47:24 +0000 : fax8

Please add documentation about hook_prepare called
with $op = 'prepare'


Thanks,
Fabio






More information about the documentation mailing list