Hi Folks,
I'm calling "drupal_get_path('module', '<name>') and it is returning the path "/sites/all/modules/<name>" rather then the specific site, "/sites/specific/modules/<name>". Am I using the wrong function?
Chris.
My first guess is that the module exists in both directories.
From: Chris Miller
I'm calling "drupal_get_path('module', '<name>') and it is returning the path "/sites/all/modules/<name>" rather then the specific site, "/sites/specific/modules/<name>". Am I using the wrong function?
May be conf_path() will help you
Thanks, Naushad
On Fri, Mar 21, 2014 at 4:26 AM, Chris Miller cjm@tryx.org wrote:
Hi Folks,
I'm calling "drupal_get_path('module', '<name>') and it is returning the path "/sites/all/modules/<name>" rather then the specific site, "/sites/specific/modules/<name>". Am I using the wrong function?
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
As nancy told please check that may not module exists in both directories sites/all/modules/ sites/site-name/modules/ On 21 Mar 2014 12:03, "muhammed naushad" naushunaushad24@gmail.com wrote:
May be conf_path() will help you
Thanks, Naushad
On Fri, Mar 21, 2014 at 4:26 AM, Chris Miller cjm@tryx.org wrote:
Hi Folks,
I'm calling "drupal_get_path('module', '<name>') and it is returning the path "/sites/all/modules/<name>" rather then the specific site, "/sites/specific/modules/<name>". Am I using the wrong function?
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Thanks, Muhammed Naushad AH* Software Developer(PHP) Mobile:971529187882 http://stunningspider.com
-- [ Drupal support list | http://lists.drupal.org/ ]
From: "Naveen valecha" valecha29@gmail.com To: support@drupal.org Sent: Thursday, March 20, 2014 11:51:44 PM Subject: Re: [support] drupal_get_path('module', '<name>')
As nancy told please check that may not module exists in both directories sites/all/modules/ sites/site-name/modules/
Hi Folks,
This is embarrassing... I was on the wrong site, and interestingly this site DID have a download in /sites/all/... When I fixed my mistakes, then drupal_get_path() worked correctly. Sorry for the confusion.
Chris.