Setting Variable Default Value in Add Node Form Field

When a user enters the Add Content page for a certain node type, I want to set the default value of a particular field based on session data.
How can alter the form to do this?

Edit: I tried implementing hook_form in my module, but it doesn't seem to get called. Here's the code:

Limiting number of nodes displayed in a view.

I am currently working on a proof-of-concept with the view of replacing a jsp and Oracle site with one in Drupal. So far I think it can be done and it is just my lack of familiarity with Drupal that is holding me back. I've currently managed to replicate 50% of the functionality using views, blocks and custom node types.

We currently publish 15 different publications per week and each of those editions will have multiple stories in it.

I've created a custom node type to store the details of publication e.g. Name, logo, a description of what it offers, etc.
I have another custom type for a story which has title, the story, publication date, and a drop down of the list of publications so I can store which publication each story appeared in.

I want to have a "Top Story" page which lists all the Publications alphabetically and shows the most recent story for each. e.g.

PUBLICATION 1
Story_Title, Story_Publication_Date
Story_Content

PUBLICATION 2
Story_Title, Story_Publication_Date
Story_Content

etc...

I could use blocks but that would mean a code change if we added a publication.
I would like a fully dynamic solution i.e. the list of publications automatically matches the list of nodes of publication_type and shows only the most recent story for each publication.

About taxonomy paging

hi all,

time element

Hi Guys

in my module i would like the user to select a time in my form

but i cant seem to find a way to accomplish this does anyone know of a way ??

Thanks

Connecting to external database and inserting those records in drupal database

I am trying to get data from external database: title of news article and the text content of news article.
I want to show them in drupal site and allow users to comment on them.
Please provide a full procedure on how to do this. I am a complete newbie.

Information needed about ubercart or any other shopping cart

Hi,

i am working on an e-commerce website in drupal 7, i've following requirements:

Sells physical products. Different products need to be sorted, filtered, listed etc. by type
Tax and shipping calculations and stock tracking
Integration with Payment Gateway (either ePay or certiTrade)
Guest checkout
Multi-currency support (US Dollar, Euro, Swedish currency, and potentially others)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x