Tag: drupal-7

55 votes
4 answers
1.9K views
How to throw 404 error in Drupal module?

I need to throw 404 error in module. Or may be there are any possibility to set required option for menu hook?

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
58 votes
1 answers
2.1K views
How do I force the use of the desktop menu when the grid is fluid?

I'm using Drupal 7 and Omega 3. The front page of my website needs an image that covers only the top half

avatar
Tana
0 1 0 9
asked 07 September, 2021
57 votes
10 answers
3K views
Menu path in Pathauto

How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path?

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
56 votes
5 answers
2.5K views
Creating list of similar nodes in Drupal 7/Views 3

Copy from drupal.stackexchange.com hoping to get more answers here: I face a rather common problem of display

avatar
Charis
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
1.5K views
How to display node/add/sometype form on another page?

The whole problem is following: Lets say we have Items, Items can have Bids, Items can have Questions and Que

avatar
Virgil
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
507 views
Using JQuery in Drupal 7

I'm writing my own Drupal 7 module, and like to use JQuery in it. $('#field').toggle(); But

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
53 votes
10 answers
1.6K views
Adding a class to "body"

How can I modify or pre-process the <body> tag to add the class body? I don't want to create a whol

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
63 votes
15 answers
1.4K views
How to insert a block into a node or template in Drupal 7?

In Drupal 6, it was easy to insert a block into a template with the following code: $block = module_invoke(&a

avatar
Royal
0 1 0 9
asked 07 September, 2021
65 votes
5 answers
1.5K views
Getting the URL of a node in Drupal 7

Goal: To send an email with a list of URLs generated from nodes. In my custom module I have managed to get th

avatar
Alphonso
0 1 0 9
asked 07 September, 2021
55 votes
8 answers
2.2K views
Attaching image files to nodes programmatically in Drupal 7

Is it possible to add an image to a node programmatically?

avatar
Arline
0 1 0 9
asked 07 September, 2021
54 votes
6 answers
1.5K views
How can I check Drupal log files?

How can I check Drupal log files? I'm using Ubuntu 10.10 + Apache2 + PHP 5.33 + MySQL and Drupal 7.

avatar
Sena
0 1 0 9
asked 07 September, 2021