function i18ncontent_db_rewrite_sql in Internationalization 5.3
Same name and namespace in other branches
- 5 experimental/i18ncontent.module \i18ncontent_db_rewrite_sql()
- 5.2 experimental/i18ncontent.module \i18ncontent_db_rewrite_sql()
Blocks retrieving of normal content types
File
- experimental/
i18ncontent.module, line 45 - Internationalization (i18n) package - translatable content type parameters
Code
function i18ncontent_db_rewrite_sql($query, $primary_table, $primary_key) {
if (preg_match("/SELECT nt\\.type, nt\\.\\* FROM {node_type} nt/", $query)) {
// Using FALSE here doesn't work with older mysql versions
return array(
'where' => '0 = 1',
);
}
}