drupal

Drupal 6 - Get node->links in blocks

I want to display $node->links in a block, but node_load only loads the node object without the links. How do I get the links? ...

Taxonomy vocabularies terms with at most 1 parent term ?

I'm using Taxonomy Manager module to manage my Taxonomy vocabularies. How can I restrict the parents of the items to 1 ? I don't want my customer being able to add more than 1 parent to a taxonomy term. thanks ...

A sliding pager like < 1 2 3 4 >

I'm using a View (grid with 4 columns). I need to customize the pager at the bottom to see the next pages. I want a pager like this: "< 1 2 3 4 >", each number is a View page. The arrows should slide the numbers to right or left.. i.e. "< 3 4 5 6 >" and they should not have any effect on the pages.. the user can change page only when ...

How to change menu labels for different user roles?

I would like to change menu labels for different user roles. For example: admin can create different content types so the default label - create content is okay, but for a standard user who can create just one type content I would like to have something like 'Post Article'. Any advice will be appreciated. ...

query database and store results in array in drupal module

I have a table in my database called gsm_tariff. basically i just want to run a simple select query "SELECT * FROM {gsm_tariff} WHERE Country='Afghanistan' and store the results in an array. Can anyone help me with how to do this please. I know where to put the code and everything I just need the code to do the query and store the result...

Concatenating 3 views in one page

how could I concatenate 3 views in one page ? Should I use blocks ? ...

Changing the location of site/user/login

There's a login page at http://site.com/user/login Is there a clean way to change the the path of that page to something like http://site.com/log so that /user/login leads to a 404 page. ...

Drupal List of related views

Hi, I need to list all the projects of an advertising company with their pictures and videos grouped by subject. For example, list under "Green Campaigns", all the projects related to that one, and at the same time, under each project show (using a grid) all the pictures and videos of that specific project. My approach was to make a diff...

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

Drupal allow FULL html as input format

I have a specific kind of node in which the user must paste FULL html into the body field. E.g. html including the html, head and body tags. Apparently, Drupal's version of "full html" is infact not "full html" as it strips out these tags. How can I circumvent Drupal? ...

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

OpenID with Drupal 6/7

In Drupal 6 (or even the upcoming 7) is it possible to use OpenID much like stackoverflow does? For example: Click 'login' and be sent to a login page where you can choose to login with any OpenID account (i.e. google, yahoo, facebook, wordpress...) example - if you choose yahoo as the OpenID account, you are directed to yahoo, login ...

Html is being truncated on save in drupal (full html)

If I unput a certain piece html into my page, it seems to be truncating: <div id="slideshow"> <img style="cursor: pointer;" src="files:img/slideshow/3.png" id="left_slide" alt=""/> <img style="cursor: pointer;" src="files:img/slideshow/1.png" id="center_slide" alt=""/> <img style="cursor: pointer;" src="files:img...

drupal_execute populating image field

How to populate image field value with drupal_execute. for ex my content type (test) has two additional fields 1. photo (image filed), 2. phid (text field) for phid $form_state['values']['field_phid'][0]['value'] ='14'; . how to populate photo which is image field type ...

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

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