I have a multi-sites installation, I need to retrieve the sub-directory of drupal installation from a module I have created.
Is there a constant to get the current installation directory (~drupal/sites/my_site1/ for instance), since I need to get information from settings.php file.
I've d'loaded and installed the lightbox module (with scriptculaous/prototype js), but It doesn't want to seem to work at all. I followed the readme, and when I try to create a lightbox link, when I click the link, it just opens the actual .jpg page in a seperate window instead of in the lightbox div.
Hi!
I am writing a new node type, and I want to put a button to the edit form, which opens an another page (for example an other node's edit form). I don't want to submit the form, because there may be unfilled fields.
I read the form API, but there isn't too much from the buttons... I viewed the node module, because the delete button on the node's core edit form does something like I want. I found this: