Yes.  You could create a specific node type for this -- call it "Birthday Post" -- and then give 'create birthday post' permissions to all users.  Then use hook_form_alter() to check their birthdate.

- Ken

On Feb 4, 2008 10:16 AM, Lluís <enboig@gmail.com> wrote:
This would require give story creation permissions to all users and
then check if this is his/her birthday?

On 04/02/2008, Ken Rickard <agentrickard@gmail.com> wrote:
> hook_node_grants() has no effect on creating nodes.
>
> You probably want to have users register their birthday, then load that into
> the $user object.
>
> Then use hook_form_alter() to run an IF check on node creation forms.
>
> - Ken
>
>
>
> On Feb 4, 2008 4:44 AM, Lluís <enboig@gmail.com> wrote:
> > I am trying to write a module to allow my web users to write stories
> > just during their birthday web; how can I achieve this?
> >
> > I am using Drupal5 and I suppose it is done using hook_node_grants(),
> > but I don't really get it; any hint is wellcome.
> >
> > thanks
> >
> > --
> > *La paciència és un arbre d'arrels amargues però fruit dolç.
> > *Hi han dues paraules que t'obriran totes les portes del món: "estira"
> > i "empeny".
> > *Quan fa 6x9? 42!!! (funciona en base 13)
> > *Abans d'imprimir aquest missatge, pensa en el medi ambient.
> >
>
>
>
> --
> --
> --------------------------------------------------------------
>  DON'T MISS EARTH'S LARGEST GATHERING OF DRUPAL PROFESSIONALS!
> Drupalcon Boston 2008 · March 3-6, 2008
> Learn more at http://boston2008.drupalcon.org
> Affordable sponsorship packages available
> --------------------------------------------------------------


--
*La paciència és un arbre d'arrels amargues però fruit dolç.
*Hi han dues paraules que t'obriran totes les portes del món: "estira"
i "empeny".
*Quan fa 6x9? 42!!! (funciona en base 13)
*Abans d'imprimir aquest missatge, pensa en el medi ambient.



--
--
--------------------------------------------------------------
DON'T MISS EARTH'S LARGEST GATHERING OF DRUPAL PROFESSIONALS!
Drupalcon Boston 2008 · March 3-6, 2008
Learn more at http://boston2008.drupalcon.org
Affordable sponsorship packages available
--------------------------------------------------------------