function i18ncontent_db_rewrite_sql in Internationalization 5
Same name and namespace in other branches
- 5.3 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 28 - 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)) {
return array(
'where' => 'FALSE',
);
}
}