function _pathauto_sql_concat in Pathauto 6
Same name and namespace in other branches
- 6.2 pathauto.module \_pathauto_sql_concat()
Return the proper SQL to perform cross-db and field-type concatenation.
Return value
A string of SQL with the concatenation.
6 calls to _pathauto_sql_concat()
- blog_pathauto_bulkupdate in ./
pathauto_user.inc - Bulk generate aliases for all blogs without aliases.
- forum_pathauto_bulkupdate in ./
pathauto_taxonomy.inc - Generate aliases for all forums and forum containers without aliases.
- node_pathauto_bulkupdate in ./
pathauto_node.inc - Generate aliases for all nodes without aliases.
- taxonomy_pathauto_bulkupdate in ./
pathauto_taxonomy.inc - Generate aliases for all categories without aliases.
- tracker_pathauto_bulkupdate in ./
pathauto_user.inc - Bulk generate aliases for user trackers without aliases.
File
- ./
pathauto.module, line 215 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function _pathauto_sql_concat() {
$args = func_get_args();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
return 'CONCAT(' . implode(', ', $args) . ')';
default:
// The ANSI standard of concatentation uses the double-pipe.
return '(' . implode(' || ', $args) . ')';
}
}