Questions tagged [drupal-6]

Drupal 6 is the Drupal version released on February 13, 2008. Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/.

Drupal 6 is the Drupal version released on February 13, 2008.
It will be officially supported until Drupal 8 has reached its first official release. After that bugs and security issues will no be longer be fixed for Drupal 6.

See for more information about Drupal.

Requirements

  • Web server: Apache, Nginx, or Microsoft IIS
  • Database server: MySQL 4.1 or higher, PostgreSQL 7.1
  • PHP: PHP 4.4.0 or higher (5.3 recommended)

Related tags:

Resources

3665 questions
77
votes
5 answers

Throwing exceptions in a PHP Try Catch block

I have a PHP function in a Drupal 6 .module file. I am attempting to run initial variable validations prior to executing more intensive tasks (such as database queries). In C#, I used to implement IF statements at the beginning of my Try block that…
kaspnord
  • 1,353
  • 2
  • 16
  • 28
58
votes
6 answers

Drupal behaviors

What are Drupal behaviors at all? What type of service layer it offers to module developers? What type of relation it maps to jQuery.ready?
Shoaib Nawaz
  • 2,152
  • 4
  • 28
  • 37
36
votes
2 answers

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 logic in them to move things around, strip links, create new links, etc. I understand that this is bad development and not "The Drupal…
jergason
  • 18,959
  • 23
  • 91
  • 97
26
votes
8 answers

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. What if I want the path of the current theme?
Steven Noble
  • 9,304
  • 12
  • 42
  • 56
24
votes
11 answers

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 settings (both global and standard theme but I couldn't find it). I still want to be able my customer to edit / administer content, so I cannot just…
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
22
votes
1 answer

How do I programmatically apply a Drupal input filter?

I am currently exporting Drupal data to an external source (XML) programmatically. However, I want the data to run through the site's default Input Format (the filter that runs before user content is displayed on the website) before being written to…
ford
  • 1,749
  • 2
  • 19
  • 36
18
votes
1 answer

Upgrading from Drupal 6 to Drupal 7: best programmer's practices?

Although I am using drupal since the D4 series, I only started developing professionally for it with D6, so - despite I did various site upgrades - I was never faced by the task of having to port my own code to a new version. I know the Drupal…
mac
  • 39,030
  • 21
  • 115
  • 128
16
votes
3 answers

"Unable to send e-mail. Please contact the site administrator"

I get the following error message in admin/user/user: Unable to send e-mail. Please contact the site administrator if the problem persists. Is this error caused by the fact I haven't an email service installed on my server? thanks Update: I now…
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
16
votes
6 answers

get vocabulary id by name

I can retrieve a vocabulary id directly from DB, but is there a built in function for this? for example: i have a vocabulary called "listing", i need that built in function takes "listing" as function argument, and return a vid. i am using drupal…
anru
  • 1,233
  • 3
  • 16
  • 29
15
votes
7 answers

How to change the label of the default value (-Any-) of an exposed filter in Drupal Views?

I created a view which has three exposed filters. Everything works fine except the fact that I can neither translate or change the default string (-Any-) for the dropdowns. Is there a way to change this string to something more meaningful like…
Ege Özcan
  • 12,341
  • 2
  • 28
  • 50
15
votes
1 answer

Simulate a click in a Google Map

I'm trying to simulate a user click on a Google Map, using API v3, after I geolocate their position when they write down their address. I used to do: google.maps.event.trigger(map, 'click', { latLng: new google.maps.LatLng(lat, lng) }); But now…
penyaskito
  • 511
  • 2
  • 5
  • 16
14
votes
5 answers

Drupal Views exposed filter of Author name as a drop down

This is a follow up question to Drupal Views exposed filter of Author name. The following question was answered and works. I can filter a view by user name. The user name is entered is entered by typing in a box and the box then auto completes.…
Linda
  • 2,107
  • 5
  • 29
  • 40
14
votes
3 answers

Can someone explain "access arguments" in Drupal?

Can someone explain "access arguments" in Drupal? Trust me I have tried Googling it but I am just not getting a clear grasp.
user363036
  • 319
  • 1
  • 2
  • 7
14
votes
6 answers

Drupal 7 programming advancements, differences from Drupal 6 upgrade or wait

I was just wondering if there were any changes in the Drupal 7 code that effect server load and speed for large sites. Also, with 7 nearing beta release, should I wait to build the sites with Drupal 7? I'm a future kinda guy. I would like to be able…
Douglas
  • 1,188
  • 5
  • 14
  • 26
13
votes
4 answers

Drupal: Views: how to group fields

I've created a views of node and I've selected the "fields" option in order to select which fields to display and in which order. Is there a way to group such fields ? It would be very useful to have parent divs in my html code. thanks
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
1
2 3
99 100