drupal-6

How do I change "date field" format of a "view" in the form of a page in Drupal?

I'm trying to show a list of dates of Nodes using view. The list should be something like, 19 September 2009 20 September 2009 Right now it can only show like Thu, 2009-11-12 (All day) Mon, 2009-11-09 (All day) ...

SQL: Column count doesn't match row count

The following query: INSERT INTO term_node( nid, vid, tid ) VALUES ( ( SELECT ctb.nid, ctb.vid, 35 FROM content_type_bout AS ctb WHERE field_school_value_c = 'Lafayette' ) ) Is producing this error: #1136 - Column count doesn't match value count at row 1 term_node has only three columns in it. What am I doing...

Drupal update.php produces error

I have a basic Drupal 6 site on a shared hosting environment. The site has been running fine for about a month. I uploaded a new release of the webform Drupal module and when I go to update.php to complete the page I get errors. The update.php preview page doesn't not show any updates needed for webforms, but if I proceed I get the erro...

theme form on drupal 6

I have a form 'pub_form' which has function $form['#theme'] = 'publication_order'; so in module file, i defined function theme_publication_order($element), but the function was not called. i have search the google, looks like i have to use hook_theme() to make theme_publication_order() to work. how can i override hook_theme() to mak...

Reference needed for drupal theme_HOOK properties

I'd like a select box to appear on a form that I'm building, and I know that I can use theme('select', $element); to generate a properly formatted select list. When I check http://api.drupal.org/api/function/theme_select/6, I can see more information about my variable, $element: $element An associative array containing the properti...

How to increase the size of File Attachment in Drupal

I am attaching a file in a node in drupal using File Attachment. But it is not allowing me to upload a file greater than 1MB. I want to upload a file of 50MB. How to increase this size. Thanks in advance. ...

How can I associate many existing files with drupal filefield?

I have many mp3 files stored on my server already from a static website, and we're now moving to drupal. I'm going to create a node for each audio file, but I don't want to have to upload each file again. I'd rather copy the files into the drupal files directory where I want them, and then associate the nodes with the appropriate file. ...

Syntax Highlighting in Drupal

Which is the best module for Syntax Highligting in Drupal. I am using GeSHi for syntax highlighting my code. It was working fine then I installed a second module FCKeditor. Now GeSHi filter is not working with FCKeditor. Do anyone have any idea why these modules are not working together. Thanks in advance. ...

Retrieving names of over-ridden theme hooks in views 2 (Drupal 6)

I have a created a view (lets call it my_view). In the theme: information section if the view I have noted one of the suggested template names (views-view--my-view--default.tpl.php (or close to that)), and created my own template file with that name. This all works fine and when I visit the theme registry, I can see there is a hook the...

Sorting cck fields in drupal6 views by 'revision date'

I'm looking for a way to construct a view in drupal6 by letting it grab the 'added date' from a nodereference cck field which has multiple values. What I need is a list of titles of referenced nodes, sorted (desc) by the date they were added to the reference-list. I've tried setting up a 'node' view, letting it grab a node ID from the...

Drupal Taxonomy Module - Limiting the number of links that are displayed per tag

I've got a site with tags like robotics, programming, simulation, quizzes etc. and I want to limit the number of links being displayed for a certain tag to a number. For example if there are 20 nodes that actually have quizzes as a tag then only 10 nodes should b displayed that have quizzes as a tag and the rest of the nodes can be displ...

attach multiple images to a taxonomy term

I have installed "Taxonomy Image" module. but i can not find a way to attach multiple images to one taxonomy term my drupal version is 6 ...

drupal form textfield #default_value not working

I am working on a custom module with multi-page form on drupal 6. I found that #default_value is not working when my '#type' => 'textfield'. However, when '#type'=>'textarea', it displays correctly with the '#default_value' specified. Basically, I wrote a FormFactory to return different form definition ($form) based on the post param...

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 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) ...

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...

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...

How can I modify the Book Copy module in Drupal 6 to forward the user to a different starting tab once a copy is made?

Example call to copy a book using the Book Copy module in Drupal 6 (assuming a node exists with book id of 142): www.examplesite.com/book_copy/copy/142 When the above site is called and node 142 is copied it then notifies the user that the book was copied, but starts the user out on the Outline tab for the book copy. I think it would b...