drupal-module

Drupal module for complex hours of operation / office hours

Background: I am building a website in Drupal that links together a wide variety of social service providers for the purposes of discovery, collaboration, and all that good stuff. The goal is to make a website that is simple to browse for consumers of these services and simple to update for providers of these services. The beta has been...

drupal jQuery 1.4 on specific pages

I'm looking for a way to force drupal to use 1.4 on specific pages. This is the same as this old question: http://stackoverflow.com/questions/2842792/drupal-jquery-1-4-on-specific-pages It look me a while to try the answer which I marked correct. But because I'm new to module dev overall I couldn't figure it out based on the answer. T...

drupal module, check if node type

As a more specific take on this question: http://stackoverflow.com/questions/2985518/drupal-jquery-1-4-on-specific-pages How do I check, inside a module, whether or not a node is a certain type to be able to do certain things to the node. Thanks The context: I'm trying to adapt this code so that rather than working on 'my_page' it w...

Add a tab to Drupal node

Hi, I want to add a tab to Drupal node like in the following picture: The picture has 3 tabs, Views, CVS Instructions, Revisions. I want to add another tab "Translation". What module should I use? The picture was taken from http://drupal.org/project/panels_tabs Thank you. ...

Drupal Views Relationship ADD not LIMIT

I'm trying to set up a relationship system between node, using flags and cck node reference (using views selection). I need to create a view that does not LIMIT by relation, it adds to it. Example: When you add a Node-B, you can reference a Node-A that you have created - OR - flagged (using flags module) When I use views to get the fl...

Product Kit does not save the selected products!

Arg! When I save my product kit, with several product selected, I land on a blank product kit node (as in no sub products). The message confirms the update, however when I return to the node edit page the products are no longer selected, hence the blank kit node page. Thoughts on debugging this, or what might lead to it? ...

How does one control select lists using form API ?

I know this is somewhat of a newb question but I am running into a deadline and 3 days of Drupal experience will just not cut it... $form['gender'] = array('#type' => 'select', '#title' => t('Gender: *'), '#options' => array(t('Male'), t('Female')), '#required' => TRUE, '#weight' => 2, ); How do I assign values to select values ? For e...

What is the opposite of Access Callback user_is_anonymous?

I know that is used in a drupal module to specify that only anonymous users can see that module. What would be the callback that specifies only logged in users ? I have a page that I only want accessible to logged in users. Thank You ...

"Connection timed out" error on a deploy with deployment module

Locally deploying content between two site instances works fine. It's when moving one instance to a remote server that gives me the following error message: Module : login Description : Remote user Result : Error Message : Connection timed out My apache access log entries are: ./node_operations/deploy_now/86 HTTP/1.1" 302 ./admin/build...

Drupal : Notification of modification to translator of a content

Hello, In Drupal, i want to know how to notify translator that the content they translated, was modified. What is the easiest way to do it? Is there a module for that? Maybe workflow can help but i think this needs too much adminsitration Bonus Question : Do you already work with the same language in several countries? Exemple : Eng...

Drupal 6: getting CCK field value with php in a Block by View Module...

Hi friends, I'm a drupal newbie (mean it :) I have a Block, created with View Module. and this block content has CCK fields. I display any of field with Fields Box in View Module. It's cool. the issue is, one of the CCK field has a condition value for linking at homepage or not. So I need to get the value of field_homepage_linking CC...

Drupal 6: display CCK Field value with php in views_customfield

SORTED http://drupal.org/node/467190#comment-2068324 Hi friends, I've spent all day to find but can't find :( How can I display CCK Field value with php in views_customfield? I tried the ones below, but no result $node->field_homepage_linking[0]["view"] $node->field_homepage_linking[0]["value"] value_get('field_homepage_linking...

Drupal Views api, add simple argument handler

Background: I have a complex search form that stores the query and it's hash in a cache. Once the cache is set, I redirect to something like /searchresults/e6c86fadc7e4b7a2d068932efc9cc358 where that big long string on the end is the md5 hash of my query. I need to make a new argument for views to know what the hash is good for. The rea...

Drupal. Better content administration, sort by node's CCK fields?

Hi, I was asking myself if there's a better way of sorting content in Drupal. Right now, when I go to admin>content all the nodes are mixed up. I installed the module "Content administration" (http://drupal.org/project/nodeadmin) and now you can not only filter but also sort them by title, type, author... but that's all. Is there any g...

displaying text in case of Low Voting

Is there any module in drupal which provides low rating feedback. eg If someone wants to vote a content as <= 2 (out of 5). Before he does so, there will be a pop up window displaying text "Are you sure you want to rate so low?" etc. If there is no such module then is there any easy way of doing it through coding or otherwise? EG: ...

Drupal Module Themes - Default CSS?

There's tons of documentation out there on how to override the appearance of Drupal modules, but I keep finding the docs for writing the original theme to be a little lacking. On this note, how can I tell Drupal to use a specific CSS file for my custom module's block output? ...

Modules for Laying Out Content-submission Forms

In reviewing Drupal layout modules, I'm left with the impression that while many exist for formatting existing content (e.g. Panels, Views and Display Suite), there are very few (if any) that focus on changing the layout of content-submission forms - and therefore there's no alternative but modifying the associated templates themselves. ...

Get a List of Available Drupal Views

I'd like to set up a configuration page for my Drupal module that contains a dropdown where the user selects one of the available views. Is there an easy way to obtain a list of all available views on the system? All I need is an array of all the views' names. ...

Transparent user registration after external authentication in Drupal

I'm working on a Drupal 6 module to provide OAuth-based user authentication and registration. I'm already using the OAuth module to authenticate as described on http://oauth.net/core/1.0a/#anchor9. The next step is to create the user account using information provided after authentication using an custom API of the Service Provider. Acc...

Maintaing the member's hours spent in the organization : Drupal Website

I am running a Drupal powered website of my college. Each student has a certain (fixed) number of hours to complete in any kind of sport. Now, I am maintaining various sports on my website using CCK and Views. Now, if a student plays some sport say A, he will go to the website and check out A's details. Also, after specified period of t...