Come and test

Events happening in the community are now at Drupal community events on www.drupal.org.
flk's picture

Heya guys,
sorry i havent posted in a long while but god the time just flew by (so much to do, so little time).

God how horrible it is to code during boiling summer (omg its totally boiling here....i soo miss the rain :P)
Over this period i have had quite few problems which when i look back seem so simple such as understanding that actions_do() accepts an array of actions and a loaded node(node_load($nid)) not just node id.
so whenever i ran something like:

<?php
actions_do
(action_node_publish,5);
?>

I would get a bunch of errors:
Warning: Attempt to assign property of non-object in /home/flk/vhosts/kolaz.techarena.co.uk/modules/actions/actions.inc on line 17

Warning: Attempt to assign property of non-object in /home/flk/vhosts/kolaz.techarena.co.uk/modules/node.module on line 404

and it would sometimes create and publish non-existant nodes. That just confused the hell out of me
<?php
if ($vs_id) {
       
$actions_array = views_scheduler_get_actions($vs_id);
        if (
$actions_array) {
         
actions_do(array_keys($actions_array), $node_id);
        }
      }
?>

So even though the code above is correct, i was supplying the wrong values to it so it never worked :(...sadly it took me a long while to figure out why not.

Other problems i have had were theming forms (i think i understand it enough..to get by) also i totally effed up the menu structure even though it was one of the first things i created...for some reason it just didnt want to work for me lol.

Anyways, i have just updated cvs with working a module.
So far one can schedule a view and then link the scheduled view to any number of actions that exist.
So i would love it if people can test what i have done so far and give me feedback etc.

SoC 2006: Views Scheduler

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: