Jump to content

count the number of modules in a hook version PS 1.4.9


Nophin

Recommended Posts

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 by Nophin (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...