Drupal

Drupal is an open source CMS framework written in PHP. *IMPORTANT* Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/. Also, because of substantial differences between major versions, consider using either the drupal-6, drupal-7 or drupal-8 tags.

59 votes
9 answers
1.3K views
Creating a link from node ID in Drupal 8

I am checking out Drupal 8 and try to generate a link based on the node ID of an article. In Drupal 7 it is s

avatar
Boyd
0 1 0 9
asked 07 September, 2021
65 votes
3 answers
1.2K views
Is it possible to change a user's Drupal password with Drush?

Is it possible to change a user's Drupal password from the command-line with Drush?

avatar
Royal
0 1 0 9
asked 07 September, 2021
69 votes
11 answers
1.4K views
How to hide Edit | View tabs?

Can I hide the Edit | View tabs on top of each node ? I've searched for this option in theme sett

avatar
Margo
0 1 0 9
asked 07 September, 2021
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
59 votes
7 answers
2.6K views
Drupal 8 images with image style

In drupal 7, i use function image_style_url('style', uri) to generate new image with style and retur

avatar
Ali
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
58 votes
5 answers
1.8K views
What are the differences between dpm() and dsm()?

What are the differences between dpm() and dsm()?

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
1.5K views
How do I get the path of the current drupal theme?

The Drupal API has drupal_get_path($type, $name) which will give the path of any particular theme or module.

avatar
Elicia
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
1.1K views
Handle multiple submit buttons in Drupal form API

I have 2 submit buttons and want to perform different actions for each submit button . Here I want to set the

avatar
Patsy
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
59 votes
5 answers
1.2K views
Drupal get site wide email address?

In my module I want to get the site wide email address - the one that is set in the site information admin pag

avatar
Yolando
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
57 votes
4 answers
3K views
Does Drupal comply with the MVC paradigm?

Drupal is frequently referred as a Content Management Framework, does it comply with the MVC paradigm? If it d

avatar
Nereida
0 1 0 9
asked 07 September, 2021
53 votes
7 answers
740 views
Drupal Source Control Strategy?

In standard php or source code based projects we easily keep all of the code in SVN and each developer can che

avatar
Sena
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
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
61 votes
2 answers
1.6K views
How do I use theme preprocessor functions for my own templates?

I have several .tpl.php files for nodes, CCK fields, and Views theming. These template files have a lot of log

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
63 votes
15 answers
1.3K 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
58 votes
7 answers
2.2K views
What is the drush command to change a theme in Drupal 7?

What is the drush command to change a theme in Drupal 7? drush theme disable theme_name drush theme enable th

avatar
Boyd
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
422 views
Working with version control on a Drupal/CMS project

I was wondering how teams that develop sites using Drupal (or any other CMS) integrate version control, subver

avatar
Basil
0 1 0 9
asked 07 September, 2021