--- relativity.module.orig 2007-03-26 13:53:29.000000000 +0200 +++ relativity.module 2007-03-26 14:47:09.000000000 +0200 @@ -1385,6 +1385,16 @@ $type_name = $type; } + // implement the hook_relativity_links which allows other modules + // to control showing children links + $hook = 'relativity_links'; + $modules = module_implements($hook); + foreach ($modules as $module) { + if (module_invoke($module, $hook, $parent, $childtype) === FALSE) { + break 2; + } + } + $may_create = relativity_may_attach_new_child_type($parent->type, $type); // only offer to let user create new child if user has 'create' access