mycred_query_log_args
Description
Used by the myCRED_Query_Log class, this filter allows you to make adjustments to the query arguments before it is run by class.
Available since version 1.0
Parameters
Param | Type | Required | Description |
---|---|---|---|
$args |
array | Yes | An associative array of arguments. |
$defaults |
array | No | An array of the default set of arguments the query supports. |
Default Query Arguments
array ( 'entry_id' => NULL, 'user_id' => NULL, 'ctype' => MYCRED_DEFAULT_TYPE_KEY, 'time' => NULL, 'ref' => NULL, 'ref_id' => NULL, 'amount' => NULL, 's' => NULL, 'data' => NULL, 'number' => 25, 'offset' => '', 'orderby' => 'time', 'order' => 'DESC', 'ids' => false, // depreciated as of 1.7.5 'fields' => 'all', // in favor for fields 'paged' => 1 )
Used By
Package | Prio. | Description |
---|---|---|
Not used by any built-in package. |
Examples
Example 1: Make sure that admins and editors can only view their own manual adjustments when viewing the log.