updated core and modules

This commit is contained in:
Bachir Soussi Chiadmi
2017-09-09 16:27:51 +02:00
parent 027aa99b32
commit 41863f872c
7810 changed files with 318922 additions and 83631 deletions
+3 -3
View File
@@ -21,10 +21,10 @@
*/
function hook_path_insert($path) {
db_insert('mytable')
->fields(array(
->fields([
'alias' => $path['alias'],
'pid' => $path['pid'],
))
])
->execute();
}
@@ -40,7 +40,7 @@ function hook_path_insert($path) {
function hook_path_update($path) {
if ($path['alias'] != $path['original']['alias']) {
db_update('mytable')
->fields(array('alias' => $path['alias']))
->fields(['alias' => $path['alias']])
->condition('pid', $path['pid'])
->execute();
}