0

I am trying to debug a hook from title, here it says http://api.drupalhelp.net/api/rules/rules.api.php/function/hook_default_rules_configuration/7.2

"This hook is invoked when rules configurations are loaded. " but not sure when this is happening? I am clearing cache, clearing Rules cache from UI, but seems like xdebug breakpoint never stops inside. Maybe I need somehow to trigger it, but not sure how?

  • I'm not sure, but I would guess that it is whenever rules_config_load() is called. – Jdrupal Nov 14 at 15:48
  • I doubt it, that function takes name parametar and loads particular rule. – Marko Blazekovic Nov 14 at 16:11
  • IIRC it's only invoked on module install (looking at the code that would be via the export property of the Entity API module, made available to the system via rules_entity_info) – Clive Nov 14 at 16:19
  • @Clive is right - the defaults are read when the module is installed. They are then stored in the DB where they may be modified/edited/deleted/restored to their original state. Also, please don't use drupalhelp.net - it is at least 5 years out of date!!! All Rules documentation may be found at on drupal.org at api.drupal.org/api/rules . If you have a suggestion for improving that documentation please post an issue in the Rules issue queue at drupal.org/project/issues/rules – anonymous Nov 15 at 1:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.