Timeline for How to modify module output via another module - whois module?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 5, 2013 at 19:16 | comment | added | Ursula | I changed the module above to include the form - and some clarification on it. I think it is better to modify the output from whois instead of calling the function again - since whois already called it before - even if it's faster at this time because of caching. | |
Dec 5, 2013 at 19:14 | history | edited | Ursula | CC BY-SA 3.0 |
added clarification, fixed bug and removed unnecessary code
|
Dec 5, 2013 at 10:03 | comment | added | Mehrdad201 | I found that when I set dependency in info file I am able to use defined functions in source module in my custom module. So I set dependencies[] = whois in my custom module and then I used "whois_get_whois" function (this function is defined in whois module) in my custom module. this functions loads whois info of specific domain name into an array. Because cached is activated, it is very quick and there is no twice request from whois server. Now I am able to work base on result array keys and values. Now what is your idea about my theory ? | |
Dec 5, 2013 at 9:36 | comment | added | Mehrdad201 | Dear Ursula, I checked your module. But this line $variables['content'] = $variables['elements']['whois_lookup_data']['#children']; it removes "whois form". When I comment this line "whois search form" is appeared but when I active it whois form is hide. Can you tell what does this line do? | |
Dec 5, 2013 at 9:25 | comment | added | Mehrdad201 | In my drupal, block is enabled and I am using it. I am creating a new module base on your codes Ursula. Thanks a lot for your help. I will inform your about the result. | |
Dec 4, 2013 at 23:58 | history | edited | Ursula | CC BY-SA 3.0 |
added block module requirement and more details
|
Dec 4, 2013 at 23:45 | history | edited | Ursula | CC BY-SA 3.0 |
added block module requirement
|
Dec 4, 2013 at 23:42 | comment | added | Ursula | You need to enable the "block" module - a core module. Edited my answer accordingly. | |
Dec 4, 2013 at 22:56 | history | edited | Ursula | CC BY-SA 3.0 |
wrong variable name
|
Dec 4, 2013 at 22:10 | comment | added | Mehrdad201 | it seems there is no hook "module_preprocess_block" are you sure about that ? | |
Dec 4, 2013 at 21:30 | history | edited | Ursula | CC BY-SA 3.0 |
clarified theme or module possibility
|
Dec 4, 2013 at 21:10 | history | answered | Ursula | CC BY-SA 3.0 |