}
}
- serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('noCache' => $noCache, 'noSticky' => $noSticky));
+ serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('noCache' => $noCache, 'noSticky' => $noSticky, 'source' => 'entries'));
if ($serendipity['dbType'] == 'postgres') {
$group = '';
$cond = array();
$cond['and'] = " AND isdraft = 'false' " . (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND timestamp <= " . time() : '');
- serendipity_plugin_api::hook_event('frontend_fetchentries', $cond);
+ serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('source' => 'search'));
$serendipity['fullCountQuery'] = "
FROM
" . (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND e.timestamp <= " . time() : '') . "
AND e.isdraft = 'false'";
- serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('noCache' => false, 'noSticky' => false));
+ serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('noCache' => false, 'noSticky' => false, 'source' => 'calendar'));
if (isset($serendipity['GET']['category'])) {
$base_query = 'C' . (int)$serendipity['GET']['category'];