Tag: drupal

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
59 votes
5 answers
2.9K views
How to reference a long class name with spaces in CSS?

I'm trying to style some Drupal output. In particular, I'm trying to reference a class with a super

avatar
Robt
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
1.2K views
Can you Create your Own Hook in Drupal?

Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is the

avatar
Wilber
0 1 0 9
asked 07 September, 2021
60 votes
6 answers
672 views
jQuery issue - #<an Object> has no method

I've tried a veriety of jQuery plugins recently and I keep getting this error … (source: shaunbellis.c

avatar
Sydney
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
57 votes
7 answers
2.2K views
How to log error message in drupal

How to log our own error messages(for ex: error due to invalid user date entry) which is generated in php prog

avatar
Daniel
0 1 0 9
asked 07 September, 2021
60 votes
12 answers
1.1K views
How can I tell whether a web app was built using Angular (or other technologies)?

How can I tell whether a (Drupal 7) web app was built using Angular by looking at the page source, and not hav

avatar
Arline
0 1 0 9
asked 07 September, 2021
60 votes
17 answers
3K views
displaying a Drupal view without a page template around it

I would like to display a Drupal view without the page template that normally surrounds it - I want just the p

avatar
Brianne
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
3 answers
423 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
67 votes
12 answers
2.7K views
array_flip():Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load()

I have recently migrated my module to Drupal7 (on PHP Version 5.3.1) and now I am getting following errors:

avatar
Robyn
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
48 votes
6 answers
2.4K views
What is Drupal&apos;s default password encryption method?

I am trying to figure out what is the security that Drupal 6/7 uses by default to store passwords. Is it MD5,

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
50 votes
9 answers
1.2K views
How to get the full URL of a Drupal page?

I need to be grabbing the URL of the current page in a Drupal site. It doesn't matter what content type i

avatar
Arline
0 1 0 9
asked 07 September, 2021
48 votes
17 answers
2K views
CSS to hide INPUT BUTTON value text

I am currently styling an <input type='button'/> element with the following CSS: background:

avatar
Frederick
0 1 0 9
asked 07 September, 2021
60 votes
7 answers
913 views
Drupal behaviors

What are Drupal behaviors at all? What type of service layer it offers to module developers? What type of rela

avatar
Gigi
0 1 0 9
asked 07 September, 2021
57 votes
17 answers
1K views
How to find version of Drupal installed

How can I know which version of Drupal is installed in my server?

avatar
Renaldo
0 1 0 9
asked 07 September, 2021