Hi, I was wondering how I can check if the current node is the filedeopt module. $node is not defined by the module and I need a way to distinguish the module from other pages in the php of my theme.

Thanks

Comments

blainelang’s picture

Hi,

the filedepot folders are proper nodes - content type 'filedepot_folder'

I've implemented the required HOOKs I believe as you can created folders and add/edit/delete attachments to those folders via the native drupal content interface.

shawngoldw’s picture

yes, those are in place. But the $node object is not defined.
Try adding isset($node) to a page template file in a theme. Other pages and modules will return a 1 while filedepot will not return anything. You can also try $node->type, there is a similar outcome.

_timpatrick’s picture

Status: Active » Closed (won't fix)

Closing as this issue is quite old. If you wish, you may reopen it.