Drupal admin: beware the double slash
Sometimes, a double slash appears in your Drupal URLs. This is an error both common and simple to fix. Here's how.
Sometimes, a double slash appears in your Drupal URLs. This is an error both common and simple to fix. Here's how.
hook_form
is used both for adding new nodes and editing existing ones, and no parameter is passed to describe the current operation.
Why is it not needed ? Because a simple test can show whether the node is being added or edited:
Using Apache, clean URLs in Drupal compatible with SEO are achieved using mod_rewrite
, but no built-in equivalent seems to exist for Microsoft IIS. There is a hack, though...
Some sites may wish to display to users what their roles are. Here is a small module allowing just this.
Permissions defined by modules in Drupal are usually given short names, in plain ASCII-96. Using anything else, like entities, requires caution...