function recently_read_is_enabled in Recently Read 7
Same name and namespace in other branches
- 6 recently_read.module \recently_read_is_enabled()
- 7.2 recently_read.module \recently_read_is_enabled()
Function that checks if a specific node type history tracking has been enabled
1 call to recently_read_is_enabled()
- recently_read_exit in ./
recently_read.module - Implements hook_exit().
File
- ./
recently_read.module, line 269 - Recently read module file. Displays a history of recently read nodes by currently logged in user.
Code
function recently_read_is_enabled($node_type) {
$enabled_types = variable_get('recently_read_node_types', array(
'page',
'article',
));
return in_array($node_type, $enabled_types);
}