Thread:Project:Support desk/Set extention config variable before or after call require once/reply (3)


 * extension could set or not set some hooks according values of config variables

You should set those hooks anyway, and the function that runs on those hooks should then read the value of the configuration variables to decide if it should perform an action inside the hook or not.

If you think your extension needs a variable set before the require_once, specify that in the installation instructions, but this seems a bad practice, and I haven't seen any example where this is needed.