function log_name_autocomplete_access in Log entity 7
Access callback for the log name autocomplete callback.
Parameters
string $log_type: The log type to filter to, or "all" for no filtering.
Return value
bool Returns TRUE or FALSE to grant or deny access to the path.
1 string reference to 'log_name_autocomplete_access'
- log_menu in ./
log.module - Implements hook_menu().
File
- ./
log.module, line 906 - Log - A general purpose record keeping system.
Code
function log_name_autocomplete_access($log_type) {
if ($log_type == 'all' || strpos($log_type, '+') !== FALSE) {
return user_access('view all logs');
}
return user_access('view any ' . $log_type . ' log entities');
}