From: Matthew M. <ma...@tu...> - 2003-01-05 15:26:35
|
> I found out why my module wasn't working with te Search module! > > in mod_info.php I had this setting that I got from PageMaster: > $allow_view = array("home"=>1, "pagemaster"=>1); > > whereas Announce has this setting: > $allow_view = "all"; > > When I changed this line, everything started working! > > I guess this is some sort of security restriction for modules that don't > wan't to be accessed from certain other modules. It'd be great if a > mention of this is made in the module development documentation. > > -Eloi George- Agreed. As you stated, allow_view determines when a module should be loaded. If you want it loaded for every page load, then this is set to all. Otherwise you list out the modules you want to trigger the mod. "home" is a substitution module that tells the core to load the module when the home page is called in addition to other modules. Thanks, Matt Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 phpwebsite.appstate.edu ess.appstate.edu |