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
10
votes
4 answers

Can I truncate sessions and watchdog table in Drupal?

I have 16 million rows in these 2 tables in Drupal.My sites are slow and these 2 tables top the slow query log. Can I safely truncate them? Also, issuing a truncate command, hangs the system. Is there a way I can delete rows in batches?
Loveleen Kaur
  • 985
  • 4
  • 14
  • 35
10
votes
6 answers

How do I remove HOME from breadcrumb

I am using Drupal 6.17 and want to get rid of "HOME" in the breadcrumb output... eg: $breadcrumb= PRODUCTS // SOFTWARE // FEATURES instead of HOME // PRODUCTS // SOFTWARE // FEATURES
canintex
  • 598
  • 1
  • 6
  • 21
10
votes
3 answers

How to split the code of a module into separated files

I am very curious to know how a Drupal module can be dis-integrated into multiple include files. A number of hook support to link include components, like hook_menu, hook_theme etc. Once I planned to simplify one of my complex module that have…
Shoaib Nawaz
  • 2,152
  • 4
  • 28
  • 37
10
votes
2 answers

How do I make a node link directly to its file contents in DRUPAL 6?

I have a menu item called "Products" which when clicked displays all nodes created by the "product" content type. Every "product" node has a file attachment field with a file attached. If I click on a "product" node, it takes me to the node as…
Granwille
  • 149
  • 6
10
votes
3 answers

Drupal: Display success/error message

how can I show users success/error messages without creating a node for it? Thanks in advance!
n00b
  • 14,958
  • 19
  • 52
  • 71
10
votes
6 answers

How can I theme the template for edit or add a node for a specific content type?

I want to theme the template for edit or add a node for a specific content type. For example, to theme all the content type forms I use the file page-node-{add|edit}.tpl.php (depending what I need to do add or edit). But I didn't found the template…
Leandro Ardissone
  • 2,773
  • 5
  • 28
  • 31
9
votes
1 answer

Does Drupal 7 have a better way of managing development changes than Drupal 6?

So one hassle of Drupal 6 is that it's tough to move changes from a development server to a test or staging server to a production server. Has this been made easier in Drupal 7? Is there some coding conventions module developers are suppose to…
Tobias
  • 4,387
  • 3
  • 24
  • 32
9
votes
4 answers

Drupal: how to access to Drupal's APIs with a standalone php script?

When I create a new script in a separate php file to run for Drupal, I need to add the following lines on top in order to access all Drupal APIs: require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); Is this correct ?
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
9
votes
5 answers

Is there any way to get uid from user name in Drupal?

Is there any core function to get uid from username in Drupal? Or I should perform a db query? my field is a textfield with '#autocomplete_path' equal to 'user/autocomplete'
Nick.h
  • 3,275
  • 4
  • 19
  • 22
9
votes
3 answers

Drupal get module info?

Is there any function in Drupal like get_module_info('MODULE_NAME') or I should parse info file?
sultan
  • 5,468
  • 12
  • 55
  • 101
9
votes
3 answers

How to send e-mails from custom PHP code?

I need to send an e-mail from my custom php code using the Drupal service. In other words, I've noticed Drupal can easily send emails so I would like to know how can I use drupal libraries to send the emails, instead of using external libraries.
aneuryzm
  • 55,858
  • 96
  • 259
  • 471
9
votes
3 answers

Fundamental understanding of how Views and Pathauto work together

I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to…
Dan Johnston
  • 131
  • 1
  • 4
9
votes
3 answers

How to get rid of Drupal CSS stylesheets?

I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies…
Massimo Cafaro
  • 25,154
  • 14
  • 76
  • 92
9
votes
7 answers

How to display the query executed by the Drupal view

I want to display the query that is executed in the drupal view. Currently in the view editor it shows the query however I have a need to use that query in my code to download an excel version of the view. Is there a way to get the executed query…
Mech Software
  • 2,836
  • 3
  • 21
  • 29
9
votes
4 answers

Hook into Drupal registration and validate user info against business logic

I want to hook into the registration module. I already have a database of 50000 users who use my old website. Now I am migrating to Drupal. I still haven't migrated the entries to drupal database. I will be checking against my old database. When a…
user266803
  • 958
  • 1
  • 7
  • 9