I have the following code in my custom.module (using it in hook_init()
):
if ($js) { // Required includes for ctools to work: ctools_include('modal'); ctools_include('ajax'); } if (user_is_logged_in()) { $title = 'hello'; $output = 'more hellos'; ctools_modal_render($title, $output); } else { return NULL; }
Problem is if even i’m not logged it shows to me a modal windows with infinite loading text. How to unset ctools_modal_render()
if i am not logged in?