western willow ventures inc.

eye on the net
  • Home
  • Contact
  • Web
  • Graphics
  • ARDi
  • Samples
  • Terms of Service
  • Fun
  • Privacy

Search

Home

php

Messing with Dates in Drupal

Mon, 2010-03-08 16:15 |  Franco

Dates and how they are used in drupal is a PITA.

this snippet of code helps to remember the easy way of moving dates back and forth in and out of timestamp format

$today['raw string'] = '2010-03-09 13:00:00';
$today['unix']=strtotime($today['raw string']);
$today['array']=getdate($today['unix']);
$today['YYYY-MM-DD HH:MM:SS']=date("Y-m-d H:i:s",$today['unix']);
$today['drupal-default']=format_date($today['unix']);
dpm ($today);

Franco's blog |  Login to post comments |  207 reads |  Tags: drupal, php

New Discoveries in Drupal for WWVi

Tue, 2009-04-28 07:13 |  Franco
  • Well, a few new crazy ideas this week: Access your content while permissions honor a taxonomy. A use case for this is regional weather clerks can only make regional weather entries, or a hay river moderator can only make nodes with taxomony hay river. This is what the TAC Lite module: http://drupal.org/project/tac_lite does for your drupal. Permissions access that respect a taxonomy.
  • Next up is the technique for embedding views. Imagine a node with 3 different views inside it!
  • Read more
    Franco's blog |  Login to post comments |  228 reads |  Tags: discoveries, drupal, embed, php, tac lite, views

    Popular content

    Today's:

    • Contact
    • ready for the oven
    • Alexandra Falls, NWT

    All time:

    • Contact
    • Web
    • ARDi - Aerial Research Drone One

    Last viewed:

    • Contact
    • Web
    • How it works

    Navigation

    • Login
    • Album photos
    • Contact form
    • Feed aggregator
    © 2010 Western Willow Ventures Inc.

    Designed by Heidi Selzler.