drupal

How to alter a MENU_LOCAL_TASK tab menu in Drupal

I have built a tabbed menu in my custom Drupal 6 module. I want to position an html dropdown list to the right of the tabbed menu at the top of my module page. The list will fire some ajax events on change e.g. changing the LIMIT clause on SQL query by specifying 10,20,50,100 results. How can I achieve this in Drupal without hacking temp...

How does one create product collections in Ubercart?

I thought i could use the 'attributes' feature for this, but unfortunately the way it displays the cost for each item is too limiting. How do I group products together in ubercart (e.g. a group of glassware all by the same designer) with an option to purchase the entire collection or individual items? ...

Hide link to a Views' view if the view is empty

I have a Drupal 6.14 site with Views module. I have a view and on the primary links I put a link to the view. There is a way to hide the link in the primary menu only if the view is empty? ...

drupal: load view template on module activation

i have developed a blogger-like archive feature (you know, from the feature module). i want to edit the .modulefile in order to automatically load the view-template (which is bundled in the feature) into the theme. is there a way to do it? ...

Drupal Content Type (Restaurant) Design

I have one content type Restaurant. For each restaurant, I would like to record their menu. The sample data would look like this: Beverages Coke                         $4.99 Mineral Water           $2.99 Cocktail Blue Lagoon              $9.99 (X combined with Y etc) Red Sapphire            $9.99 (Another X mixed with blah) ...

how to print just the popup window

Using our custom Drupal module to display tabular information pulled via another server's view (so it's not saved to drupal db). Users click a line item in this table, which causes a shadowboxed popup modal window containing that line item's details. We are using the popups api function call to achieve this: popups_add_popups() Unfor...

'add another item' in non-CCK Drupal forms

CCK for Drupal has the handy feature of allowing a single CCK field to accept multiple values via a "add another item" button that results in an array of data in the node. I'm wondering if there's any easy way of adapting this for a non-CCK form that I'd be calling by drupal_get_form. I'd rather not have to re-invent the wheel with mult...

How to make ajax call from drupal pager

i'm new to drupal and using drupal6.. i have a module which fetches a set of employee details from database based on input fields.The submit button calls a JavaScript function in an emp.js file which generates an ajax call xmlHttpReq.open('GET', "/empfinder.json&dept=" + dept + "&gender=" + gen+ "&age=" + age, true); while i'm tryin...

Please suggest a good book on Drupal

Can somebody please suggest a comprehensive book on Drupal? It would be great if the book is available online (and free :) ) ...

Notification mail in open atrium

I have a problem on how to send mail on notification while editing or creating any contents in open atrium. I have followed as mentioned in below link https://community.openatrium.com/documentation-en/node/28 but was not successful in sending mail to notified user on creating or editing of contents. And also i wanted to send a mail to...

Drupal Menu System - Outputting a Tree One Level Down

I've been reading through the various menu functions in Drupal, but there are sooo many, and I've reached a point of utter confusion and despair... Hoping one of the smarties here can help me out... Basically, I have four levels to my menu. I'm trying to create a tree that outputs from the second level down. So, the menu looks like ...

Drupal module nested menu items

In implementing hook_menu for a module, I am trying to put some items into a submenu. So far I have something like this $items['MyModule'] = array( //... 'page callback' => 'system_admin_menu_block_page', 'file' => 'system.admin.inc', 'file path' => drupal_get_path('module','system'), ); $items['MyModule/MenuItem1'] = array( ...

How to place multiple content types on a Drupal page?

Hi all, I've created a new content type called Homepage, which has a number of fields. The fields are node references to the Single Image Promo content type. Single Promo Box has fields for title, text and image. The idea is that I can create multiple copies of a Single Promo Box, each with different field values. I then want to place a...

Web application in drupal?

I am going to be creating a work order system with three roles The "client" - The client can request projects to be completed by the worker. The project must be selected from a list of templates and various sub options all referred to as a campaign (campaign types come and go throughout the year) The worker - The worker must be able to...

Migrating from Drupal to Rails - Routing

I've developed a new Ruby on Rails site for my organization. I want the new Rails site to intercept incoming requests that were meant for the old site and display a message for the user indicating that the new site is launched, a link the new URL they were most likely trying to get to, and a reminder to update bookmarks. So I'm prett...

Best PHP and Drupal book(s) for lifelong C/C++ developer

I fairly expereinced C/C++ developer (in my mind), but have never done any PHP and certainly no CMS/Web app stuff (I have done a few static sites). I am looking for some resources that won't try to teach me what a for loop or if statement is, but get me going on php and drupal dev (for drupal, I need to get a grasp on whether I will ha...

How to add classes for styling to Drupal when using menu_block?

I'm using the menu_block module in Drupal for my menus. This works very well, but I want my menu items styled as an image menu. This cannot be done nicely with the default settings - the menu items look something like this: <li class="leaf first menu-mlid-199"><a href="/this/is/some/nice/url" title="Homepage">Homepage</a></li> I'm gue...

Why are my 3rd-party HTML to PDF tools not recognized in Drupal 6 using Print module?

I have installed Drupal 6 and have the "Printer, e-mail and PDF versions" aka "Print" module installed. I then realized in order to generate PDF's from my html nodes that I need a third-party tool, which is fine but the Print module is not recognizing the third-party tools I have installed in the /modules/print/lib/ directory. I get the...

Consuming SOAP Web Services in Drupal from C# client

I want to make a client in C# in order to create Blog posts in Drupal, so the situation is the following. In Drupal i have Services module and soap_server both enabled and when i consume the wsdl file from http://example.com/services/soap?wsdl is recognizes it properly but i don't know what to do next... I'm stuck. The lack of documentat...

How can I modify the Book Copy module in Drupal 6 to change the name of the copy to a different name?

By default, the Book Copy module will create a new book with the same exact name as the book it is copying. This can become confusing and actually caused one of the site developers to accidentally delete the original book, which was reference in menus and such and left the site in a weird state. Had the name of the copy been something o...