Closed (won't fix)
Project:
filedepot
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 May 2010 at 02:20 UTC
Updated:
5 Jun 2013 at 20:47 UTC
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
Comment #1
blainelang commentedHi,
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.
Comment #2
shawngoldw commentedyes, 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.
Comment #3
_timpatrick commentedClosing as this issue is quite old. If you wish, you may reopen it.