[drupal-devel] Question on block creation

Syscrusher scott at 4th.com
Fri May 27 04:04:50 UTC 2005


Good evening!

Is there a "Drupally correct" way to do the following two things?

1. Obtain the current Drupal path without querying web server variables.

2. Know whether or not the current page is displaying a node in full-page view
   *from within a block* (i.e., *not* from within the node content creation).

I know how to do this as a kludgy hack, but is there a nice, elegant way to
obtain this info?

If not, a function like drupal_get_current_path() might be a useful addition
to core for 4.7, and probably easy to implement. :-)

Kind regards,

Scott

-- 
-------------------------------------------------------------------------------
Scott Courtney     Drupal user name: "syscrusher"   http://drupal.org/user/9184
scott at 4th dot com       Drupal projects: http://drupal.org/project/user/9184
Sandbox:  http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/syscrusher



More information about the drupal-devel mailing list