So I have written some simple code which lets you write
<?php
function poll_define_hooks() {
$hooks['implement']['nodeapi'] = array('before' => array('forum'), 'after' => array('taxonomy'));
}
?>This will define a directed graph. So, the code does a depth first search. This has two uses: detects cycles and orders as well. The whole code with some test code is 2K. It's in my sandbox.
Commenting on this Story is closed.



![Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]](../sites/all/themes/drupal4hu/images/bg-center/bg-center_4.png)















we can use this code to detect circular depencies also, if we want to.