How should I build a referendum voting content type?

What would be the best way in Drupal to have a content type for a topic for Users to vote on, with two related content, one for the "pro" position and one for the "con" position that would support extensive participation, such as comments and ratings of the comments. Likely all three content types should support wiki style updates.

It would be ideal if users (or perhaps moderators) could create new topics.

Thanks, Jerry

Get global variables

Hello.

I am using external php file in my module when I call ajax post I use this file to write data to database:

In drupal 6 I included bootstrap and get user data like here:

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $user; 

But with drupal 7 using the same code when I print $user I get only:

Attaching files and images // media management

I've been trying to find an elegant way to manage media in drupal for some time now, and it seems there are no (functioning and stable) solutions from add on modules yet. How do you solve this simple scenario:

Looking for Drupal experts (programmers + themers) in Los Angeles

We are looking for drupal experts for outsourcing large parts of projects that we have going on and new ones that are waiting for us to start.

Looking for:

1. Drupal programmers

- Experience with organic groups needed

2. Drupal theme experts

(We have designers)

MUST BE IN THE LOS ANGELES AREA (50 miles from 90027)

Contact me at agiveon [at] gmail [dot] com

Drupal 7 custom theme best practices?

Forgive me if this is a redundant question. I have searched high and low but been unable to find answers.

I have a d7 test site and I see that Stark is the new built-in starter theme. However I have been unable to find information on how it is intended to be used. I have had trouble making future-compatible themes in the past and I want to get off on the right foot with d7. If there is relevant documentation I have overlooked please point me to it.

Thank you!

Drupal 7 API Change notification

This is a notification of two recent Drupal 7 API Changes. Since many of you are developing contrib and custom modules for Drupal 7, and since Drupal 7 still has occasional required API changes, it seems reasonable to notify the developer public.

HOWEVER: This is the *only* planned API change notification to this newsletter (Maintainer News). Future announcements of API changes will go only to the Development Mailing List. If you would like to receive this occasional service, you'll need to be subscribed: http://drupal.org/mailing-lists. Each announcement will be titled "Drupal 7 API Change notification", so if you want to filter, you can.

  1. hook_block_info_alter() has been renamed to hook_block_list_alter(). If your D7 module was using hook_block_info_alter() it will need to be updated. Issue: #560746: Rename hook_block_info_alter() to hook_block_list_alter() and add hook_block_info_alter(). See block_example.module for sample usage.
  2. Content types no longer have a body field unless one is explicitly added. This means that:
    • If your content type requires a body field, you must call node_add_body_field() in hook_install(). Example in node_example.install.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x