function views_lazy_load_get_excluded_user_agents in Views Lazy Load 7
Same name and namespace in other branches
- 8 views_lazy_load.module \views_lazy_load_get_excluded_user_agents()
Gets a regular expression of user agents to exclude.
Return value
string A regex string to exclude user agents that don't use Views Lazy Load.
1 call to views_lazy_load_get_excluded_user_agents()
- views_lazy_load_plugin_display_extender::isExcludedUserAgent in includes/
views/ views_lazy_load_plugin_display_extender.inc - Check the user agent string to see if it's one of our excluded agents.
File
- ./
views_lazy_load.module, line 49 - Module file for views_lazy_load.module.
Code
function views_lazy_load_get_excluded_user_agents() {
return variable_get('views_lazy_load_excluded_user_agents', 'Googlebot|msnbot|Rambler|Yahoo|AbachoBOT|accoona|AcioRobot|APSeek|CocoCrawler|Dumbot|FAST-WebCrawler|GeonaBot|Gigabot|Lycos|MSRBOT|Scooter|AltaVista|IDBot|eStyle|Scrubby');
}