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
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

sugree - April 11, 2007 - 04:10

I recommend you to read my guide.

#2

augustofagioli - April 12, 2007 - 04:16

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

mrfelton - March 7, 2009 - 12:08
Status:active» closed

closing due to inactivity + I do not maintain the 4.x version anymore.

 
 

Drupal is a registered trademark of Dries Buytaert.