[development] is nodeapi hook a requirement or not?
sime
info at urbits.com
Thu Mar 8 05:29:27 UTC 2007
Moshe Weitzman wrote:
> i've bumped into a limitation in node.module that i makes me squirm.
> our bulk node operations on admin/content/node are very efficient
> because they perform single UPDATE statements like (make these nodes
> promoted):
>
> db_query('UPDATE {node} SET status = 1, promote = 1 WHERE nid IN(%s)',
> implode(',', $nodes));
>
> the problem is that we don't let modules know about these changes via
> nodeapi. so modules which listen on nodeapi('update') never know about
> this change. oddly, the delete operation does do one by one deletion
> which is good because we aren't leaving behind cruft in ancillary node
> tables.
>
Is it feasible to extend the existing hooks, so that other modules are
passed a list of nids?
OK, when I think about it, this will create an area of nodeapi that
SQL-deficient developers would have trouble adapting to, many would
ignore it, and we'd be in the same spot. Still, I'm interested.
.s
More information about the development
mailing list