I have made a custom module to do some DB lookups into another system (our asset register). I modeled this on the IP Address lookup module and the code seems to be working as expected with only one issue.
The issue is that the function is only called when that input is set to the "IP-Address" type.
However, I just want the function's result treated as a Varchar. Do I need to tweak the code somewhere? I looked in the config files but couldn't find a place to toggle this.
Hugh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have made a custom module to do some DB lookups into another system (our asset register). I modeled this on the IP Address lookup module and the code seems to be working as expected with only one issue.
The issue is that the function is only called when that input is set to the "IP-Address" type.
However, I just want the function's result treated as a Varchar. Do I need to tweak the code somewhere? I looked in the config files but couldn't find a place to toggle this.
Hugh
Looks like the issue is in line 60 of includes/attr.inc.php.
The IP Address class gets an instance of the module list before it calls:
The "default" class (and most of the others) try to call it on the class itself:
I'll file a bug report.