call from others module
augustofagioli - April 10, 2007 - 13:35
| Project: | IP to Country |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
supposing from module "A" I have an ip, of which I want to know the nationality
Do I have to call the theme_ip2cc_ip_flag() function?
At the moment, I've solved like this
$pass=theme_ip2cc_ip_flag($links->hostname);
$pass = str_replace( "?q=module", "module", $pass );
$page_content.=" ".$pass." ";using the str_replace to remove the $_REQUEST var from the generated link.

#1
I recommend you to read my guide.
#2
Your Guide read, without finding related solution.
following your instructions, the "theme_ip2cc_flag" function gives to me a img tag which point to
http://roma.cercachetrovi.it/?q=modules/ip2cc/flags/it.png, which is wrong to me!
Maybe because my drupal 4.7 installation has "Private download method" in "admin/setting"?
Please note that what I'am expecting is a img tag pointing to
http://roma.cercachetrovi.it/modules/ip2cc/flags/it.png
finley
fagioli.biz software and web services
#3
closing due to inactivity + I do not maintain the 4.x version anymore.