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

3646 questions
8
votes
5 answers

returning untemplated output in drupal from menu callback function

I have a drupal module with a function that returns an attachment text/plain, function mymodule_menu() { $items = array(); $items[MY_PATH] = array( 'title' => 'some page', 'page callback' => 'myfunction', 'type' => MENU_CALLBACK, ); } function…
Tom
  • 131
  • 2
  • 3
8
votes
4 answers

Preventing form_token from rendering in Drupal "GET" forms

Drupal inserts a form_token as a hidden field when it renders forms. The form_token is then checked on form submission to prevent cross-site request forgery attacks. The form data that is submitted is guaranteed to have come from the original form…
ctford
  • 7,189
  • 4
  • 34
  • 51
7
votes
5 answers

How do I create a node from a cron job in drupal?

In a custom module for drupal 4.7 I hacked together a node object and passed it to node_save($node) to create nodes. This hack appears to no longer work in drupal 6. While I'm sure this hack could be fixed I'm curious if there is a standard…
Steven Noble
  • 10,204
  • 13
  • 45
  • 57
7
votes
1 answer

Drupal multi-form loses state on page refresh

I have a multi-page form. Visit page 1, page 2 and then page 3. Push refresh (f5) and the form goes back to page 2. This is with drupal-6. The problem looks similar to this http://drupal.org/node/1060290. Digging into the problem, via the…
Interlated
  • 5,108
  • 6
  • 48
  • 79
7
votes
2 answers

How to get multiple parameters sent via drupal hook_menu

I've got this menu hook below by which I'm sending two parameters to the function. But in the function I am only receiving the first parameter. Does any one know how to send and get multiple parameters using the Drupal menu system? function…
Vikas Naranje
  • 2,350
  • 5
  • 30
  • 40
7
votes
5 answers

Drupal Views: Generate xml file

Is there a views plugin that I can use to generate a xml file? I would like something that I could choose the fields I would like to be in the xml and how they would appear (as a tag or a attribute of the parent tag). For example: I have a content…
Luiz Guilherme
  • 1,601
  • 21
  • 37
7
votes
1 answer

drupal form api checkboxes

I am using drupal form api and using checkboxes. I am getting problem in default checked values with it. following is the code snippet... $result = db_query("SELECT nid, filepath FROM {content_type_brand}, {files} WHERE…
Tausif Khan
  • 2,228
  • 9
  • 40
  • 51
7
votes
3 answers

Should I use Drupal 6 or Drupal 7?

As the title states: Should I use Drupal 6 or Drupal 7? See, the dilemma here is the usability. I have to develop a website for a client, and I've been running into quite a bit of difficulty with Drupal 7. A module not working there, an error…
Janis Peisenieks
  • 4,938
  • 10
  • 55
  • 85
7
votes
1 answer

Drupal : how to change current language of taxonomy

I have a Drupal site in English which has content i.e. nodes & taxonomy in English. Now I want to convert all content to Spanish. I want to retain the English content as well. For taxonomy translation, I installed Locale and i18n module. I searched…
7
votes
7 answers

How do I send an email notification when programatically creating a Drupal user?

I am trying to create a user using code. I have the following that created the user. It however does not send an email to the user saying that the account has been created. How can I do that? $newUser = array( 'name' => 'username', 'pass' =>…
Will
  • 1,393
  • 5
  • 14
  • 21
7
votes
2 answers

Customize TinyMCE using Drupal's WYSIWYG module

I am looking to create a custom button on the TinyMCE toolbar that wraps the currently selected content in a div with a class. I am using drupal 6.19 with wysiwyg-dev and TinyMCE 3.3.9.2. Sample text:

Heading

Sample text

wiifm
  • 3,787
  • 1
  • 21
  • 23
7
votes
3 answers

Passing arguments using drupal_get_form()

Here is my custom module using hook, Assume if I want to pass argument to custom1_default_form function call, how should i pass the argument?
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
7
votes
1 answer

How to create a Views style plugin for Drupal?

I'm trying to create a Views Style plugin for the Views module in Drupal. The aim on the style plugin is to render the view as a drop down (i.e. SELECT) box. I can't for the life of me find any decent or complete documentation on how to do this.…
Camsoft
  • 11,718
  • 19
  • 83
  • 120
7
votes
3 answers

Form submit handlers with additional arguments

For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit handler as $additional_args = array(); $form['#submit'][] = 'my_submit_handler' I expect to submit handler as function…
Shoaib Nawaz
  • 2,302
  • 4
  • 29
  • 38
7
votes
9 answers

How to redirect user to a specific page after they login if they belong to a certain role?

We have certain users in our member list that have a role "vendor" attached to them. All such members are to be redirected to a certain page upon login. How can this be accomplished?
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169