Module Relationships and Question about counting number entries in multiple fields.
Using Jamroom
makuta:How about a specific time?
If you need it to fire at a specific time I suggest cron from your server to call a url.
/**
* meta
*/
function xxReviews_meta()
{
$_tmp = array(
'name' => 'Reviews',
'url' => 'reviews',
'version' => '1.0.0',
'developer' => 'a Reviews module, ©' . strftime('%Y'),
'description' => 'a module related to reviews,
'category' => 'site',
'license' => 'mpl'
);
return $_tmp;
}<?php
/**
* @copyright YOUR NAME
* @author your name <you [at] yoursite [dot] com>
*/
// make sure we are not being called directly
defined('APP_DIR') or exit();
//------------------------------
// some_location
//------------------------------
function view_xxReviews_some_location($_post, $_user, $_conf)
{
return 'hello world';
}Site Builder - Menus 1.0.3
Site Builder - Panels 1.0.4
Site Builder - Widgets 1.0.7function xxReviews_init(){
jrCore_register_event_listener('jrCore', 'daily_maintenance', 'xxReviews_daily_maintenance_listener');
return true;
}
/**
* Daily maintenance
* @param $_data array incoming data array
* @param $_user array current user info
* @param $_conf array Global config
* @param $_args array additional info about the module
* @param $event string Event Trigger name
* @return array
*/
function xxReviews_daily_maintenance_listener($_data, $_user, $_conf, $_args, $event)
{
// do whatever you want to do here, then return $_data
// this function will run once a day.
return $_data;
}