Closed (fixed)
Project:
Popup
Version:
6.x-3.22
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2011 at 20:55 UTC
Updated:
29 Oct 2013 at 21:34 UTC
If I want to us the listed API functions in the README file in another module, how do I go about calling them? In particular, the popup() function.
if(module_exists('popup') && function_exists('popup'))
evaluates false when module is enabled.
Comments
Comment #1
r.aubin commentedIt looks like the popup.api.inc file isn't loaded by default. It's very confusing that the README.txt file consists almost entirely of API documentation, but yet the API functions don't appear to be available without including the file in your own code.
Comment #2
eL commentedsame problem for submodules like popup-filter. In 3.0 it works fine, but now, functions are not available...
Comment #3
rogerbYes, the api documentation would be improved with the addition of some examples.
Here is a really basic popup.
Comment #4
Scheepers de Bruin commentedThanks Roger.
Rather use:
(and I added an example to the readme)
Comment #5
AlexanderPop commentedis right way
Comment #6
Scheepers de Bruin commentedThanks, added on the module homepage
Comment #7
Scheepers de Bruin commented