This module adds the ability for pages defined with page manager to define date contexts to, for example, take dates as arguments. Any date that can be interpreted by strtotime is a valid date argument.

The date argument then turns into a page manager context which you can send to a view for example. You can also modify the date argument for every context using strtotime syntax.

For example if the date argument is 2011-01-01 and you modify with the string '+1 week' the date value of that context becomes 2011-01-08.

http://drupal.org/sandbox/emattias/1233344

Comments

pillarsdotnet’s picture

I like. Will test shortly as I have an actual use-case coming up on a development site.

klausi’s picture

Status: Needs review » Needs work

First, have asked in the ctools issue queue if your code would fit directly into ctools?

Code issues:
* project page should link to ctools for clarity
* Wrong git release branch name, see http://drupal.org/node/1015226
* README.txt is missing
* page manager elready depends on ctools, so no need to define that dependency again in the info file
* module: @file doc block missing, see http://drupal.org/node/1354#files
* Please remove all old CVS $Id tags, not needed anymore
* date_arg_context(): all functions that you define should be prefixed with your module name to avoid name clashes
* date_context_relative_date(): there should be no newline between function and doc block.
* ctools_date_context_from_date_arg_context(): again, function naming problem.

emattias’s picture

Status: Needs work » Closed (won't fix)

I haven't got time to work on this module so I'll close this application.