Nophin Posted October 11, 2012 Share Posted October 11, 2012 (edited) Hi, the issue is simple, is there any way to count the modules in a hook? Example: lets say we have the right hook: $HOOK_RIGHT_COLUMN all i want to know is if this hook has a module in it or not. A simple true or false would do great. this is core related, nothing fancy, i just want a way to check if a hook has no module attached. Thanks in advance, Nophin. Edit1: I need something like: if ($right_column_variable is empty) { do something } just like the first line in the body: {if !$content_only} I don't mind checking inside the database if some one can point to the right table, if such a variable dose not exists. Edited October 11, 2012 by Nophin (see edit history) Link to comment Share on other sites More sharing options...
clayton29657 Posted October 11, 2012 Share Posted October 11, 2012 (edited) nevermind misread your ? sorry not sure Edited October 11, 2012 by clayton29657 (see edit history) Link to comment Share on other sites More sharing options...
Nophin Posted October 11, 2012 Author Share Posted October 11, 2012 nevermind misread your ? sorry not sure Thanks for the fast reply, but i am looking for a way to do the checking in the template. I need something like: if ($right_column_variable is empty) { do something } just like the first line in the body: {if !$content_only} I don't mind checking inside the database if some one can point to the right table, if such a variable dose not exists. Regards, Nophin. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now