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
7
votes
3 answers

How to list CCK fields by content type in Drupal

To get a list of a content type's cck fields, I was hoping to use: drupal_get_schema('content_type_mycontenttype'); but that leaves out fields with multiple values. Is there a simple call to use to get such a list?
lazysoundsystem
  • 2,039
  • 23
  • 23
7
votes
1 answer

How can I create multiple different blocks in one module in Drupal 6?

I'm using hook_block to create a block with the name of the custom module I'm creating. I'm not being able to create a block without using myModuleName_block. Do I need to do different modules for every different block I want to create?
ino
  • 273
  • 2
  • 13
7
votes
5 answers

Drupal: How to Render Results of Form on Same Page as Form

How would I print the results of a form submission on the same page as the form itself? Relevant hook_menu: $items['admin/content/ncbi_subsites/paths'] = array( 'title' => 'Paths', 'description' => 'Paths for a particular…
Aaron
  • 3,249
  • 4
  • 35
  • 51
7
votes
5 answers

Drupal - How to update a CCK NodeReference field programmatically?

I'm trying to create a node (B type) & assign it to a A type node's CCK nodereference field using node_save() method. $node_type_A = node_load($some_nid); $node_type_A->field_type_B_node_ref[]['nid'] = $node_type_B_nid; $node_type_A =…
user87274
7
votes
1 answer

Update {node_counter} table programmatically in drupal

I currently use the statistics module (core) on my Drupal 6 install. This increments a count in the {node_counter} table every time the node is viewed, and this works. My question is - can I programmatically increment this counter as well? I am…
wiifm
  • 3,787
  • 1
  • 21
  • 23
7
votes
3 answers

How to theme a view in drupal

Can any one help me out on how to theme a view. For each view created i want to have different templates.
sangeetha
  • 203
  • 2
  • 5
  • 9
7
votes
9 answers

drupal_add_css not working

I need to use drupal_add_css to call stylesheets onto single Drupal 6 pages. I don't want to edit the main theme stylesheet as there will be a set of individual pages which all need completely new styles - the main sheet would be massive if i put it…
MrFidge
  • 2,107
  • 11
  • 40
  • 63
6
votes
1 answer

Why doesn't the view use the database table I defined in hook_views_data()?

I have a problem with my module views integration. I need to provide information about user who added video and timestamp. Video field is a CCK Embedded Media Field and it stores in content_field_3d_party_video table. The schema is defined from the…
breethe
  • 613
  • 1
  • 6
  • 18
6
votes
3 answers

Drupal url encoding

I am having trouble properly encoding URL data. Using the following code: $redirect = drupal_urlencode("user/register?destination=/node/1"); drupal_goto( $redirect ); but, the URL that comes up in my browser test is the…
sisko
  • 9,604
  • 20
  • 67
  • 139
6
votes
1 answer

%20 in URL is now causing ERROR 403 FORBIDDEN Errors

This is not a duplicate question. First of all, I have 3 "identical" Drupal 6.20 CMS desktop type websites using MySQL database 5.7.23 and PHP 5.6.40. All 3 of these sites have been around for many years, and have never experienced this problem…
Sammy
  • 877
  • 1
  • 10
  • 23
6
votes
2 answers

Check cookie and redirect with Apache

I'd love to get some feedback on this. I'm not sure if it's the right approach. The details I'm running Apache 2 with PHP 5.3/MySQL 4 and Drupal 6 is the platform. I'm developing a site which contains restaurant reviews in a couple of selected…
Per Sandström
  • 225
  • 1
  • 3
  • 9
6
votes
2 answers

Can I use a static method as a menu callback in drupal?

When defining a hook_menu item can I use a public static method on a class rather than using the global underscore naming convention drupal tends to go for? For example, is the following acceptable? $items['test'] = array( 'page callback' =>…
Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
6
votes
2 answers

Drupal - How can I make an array globally accessible?

I'm using this code in a views field template (in this case views-view-field--all-members--uid.tpl.php): uid); $users_friends_ids = array(); foreach ($users_friends as $id => $value) { …
james6848
  • 1,657
  • 3
  • 25
  • 39
6
votes
1 answer

drupal module pages

I'm having a conceptual sort of roadblock. So, I'd like to make a custom Drupal module, with several different pages, each of which "does stuff". I'm not understanding how to make/integrate different pages into my module, and what their URLS would…
rlb.usa
  • 14,942
  • 16
  • 80
  • 128
6
votes
1 answer

Enable blocks automatically when a theme/module is installed

I developed a Drupal theme and a few modules. The theme defines special regions where the blocks from my modules can be displayed. In the present condition, first I have to install/activate the modules, then install/enable the theme and then…
Sparky
  • 4,769
  • 8
  • 37
  • 52