drupal-6

Submitting form custom module

Hi guys, I have a question regarding drupal 6 forms. I have 4 tables: location[locationid, name]; package[packageid, name], person[personid, name, locationid, address, etc...] pickup[pickupid, personid, packageid, locationid, _pickup_day_,...]. I've made forms and form_submit for the three tables: location, package, person (simple C...

Fixtures in Drupal

Hi there, i am building a sports (Cricket) site using drupal cms. I got struck at creating fixtures page. I can create team page (using cck), players page(using cck again) but i am not sure how to do fixtures page. The basic idea is when users click fixtures page thta page has to give the stats related to either game/player/team Questi...

Drupal: automatically add new nodes to a nodequeue

Can I somehow automatically add a node to a specific nodequeue when it is created ? (I'm using nodequeue module: drupal.org/project/nodequeue) thanks ...

Drupal does not detect an installed module

I have a number of sites running off a single Drupal core installation. This includes a number of 'standard' modules such as Views and CCK in the /sites/all/modules directory. This works fine apart from one issue. One of the sites refuses to accept that the Google Analytics module is installed. It can see all the other modules in the ...

Is there a module to specify access rules for specific nodes or specific pages?

Is there a Drupal module to specify access rules for specific nodes ? I don't need to specify them for a generic content type, but for a specific node (nid). Also I would like to specify permissions on a specific page (let's say a view). thanks ...

Pages are loaded twice

It appears my Drupal pages load twice. If I added debugging such as drupal_set_message() in methods such as includes/common.inc drupal_build_css_cache() and it gets called twice. I also have modules that add to the data to the DB these also get called twice and I really only want certain DB updates to be called once. Is this normal fo...

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 remove the permission for it. thanks ...

CreditCart payment for 1 fixed product (no PayPal, no Google Checkout, no Ubercart)

Hi friends, I'm about to start a new Drupal website. My client needs CreditCart payment (in-site with authorize.net). So he doesn't want PayPal or Google Checkout through Credit Cart payment. As I know Ubercart is well working solution. but i have 1 fixed product. I don't need any shopping basket, etc. so Ubercart is too big for my need...

hook_preprocess_node() execution order

If I have two modules, each has implemented its preprocess_node hook. Then which one will be called first ? Is there anyway to enforce the order in which it would be called ? module1_preprocess_node(&$vars){ $vars['submitted'] = "test1"; } module2_preprocess_node(&$vars){ $vars['submitted'] = "test2"; } I wonder which would be th...

How to get different templates for each page

Hello guys I have to crate a simple CMS using drupal, It has 4 pages and each page has unique design. How can I achieve this? Thank you ...

Tokenized Email Action Is Not Picking Up My Tokens

Hi, I'm having some problems setting up a tokenized email to use the tokens I've created in my module. I am using this in a tokenized email [example-contact]. I've implemented the example_token_values() and example_token_list() in my module and I've also created a trigger in my module. My module has a form, created with the form API, th...

Space-specific Contexts

Hi, I've created a space using a custom type. Pretty simple, it just overrides the Drupal variables "site_frontpage" and "theme_default" when someone is inside of the space (using a PURL prefix). Lovely! Now, when inside of this space, I'd like to disable certain Contexts, and enable other Contexts. For example, when in the space, disp...

List of features a Drupal hosting service should have...

I'm looking for a hosting service for Drupal to suggest to all my next customers, to be sure I'm not going to have development issues. I'm writing down a list of features a Drupal hosting service should have: 1. Control panel with zip compress / decompress functionality After I uploaded drupal to new server, I usually don't have ssh ac...

Managing 2 websites from 1 admin panel

Hi friends, Is it possible to control 2 different Drupal website from 1 admin panel? 2 different domain, but on same host-server. one of my client came up with the idea and I wasn't sure if it can be done. Appreciate advices! Thanks a lot! ...

Drupal and PHP 5.3

Is Drupal perfectly working on PHP 5.3 ? I tried some modules and received several warnings.. is it going to take some months before it will be completely optimized ? thanks ...

Multi CCK field, some not visible

I have content type CustomInvoice, which has CCK fields (customer, price, ..etc). Then there is another content type, where all customers are stored. In CustomInvoice I have Reference CCK field to CustomerContentType .. so when creating CustomInvoice user would choose customer from drop down cck reference field and that is it. But if ...

Only getting the first character when accessing post variable

A common way I handle things in Drupal is to create a CCK type, and then create a custom submit handler to perform logic on the CCK fields when the node is submitted. However, I have been unable to get the value when the CCK field type is a Date field because the array is structured differently. UPDATE - João Guilherme had a much simple...

Adding information to $user on login?

I have a module called "packages". I want to store information on what package the user is using upon log in. I.e. Where, using which hook, or at what point, can I run this code: $user[packages] = packages_get_user_packages($user->uid); ...

Best practices to list books and books childs with hierarchical style in Views.

Im developing a website about travels. My needs is to build a view that output: France Guide - Guide to Paris* -- Hostels in Paris - Guide to Lyon* - Guide to Hostels in France Ireland Guide - Dublin* -- Hostels in Dublin - Cork* Italy Guide - Rome* - Florence* The nodes with the asterisk * has a location field, and i need to show th...

Mix and match of products

I want to implement mix and match of products in drupal.Suppose if there are three products Product Price A 10$ B 10$ C 10$ I want the mix and match feature of this three products that it is a case of 4(selecting from this three products). The user can select 4 items from three products A,B,C(Lets s...