Skip to content

Instantly share code, notes, and snippets.

@mmenavas
Created June 20, 2017 00:45
Show Gist options
  • Save mmenavas/e9b5f4743a6547581c1af835012683ef to your computer and use it in GitHub Desktop.
Save mmenavas/e9b5f4743a6547581c1af835012683ef to your computer and use it in GitHub Desktop.
<?php
$num_updated = db_update('users')
->fields(array(
'timezone' => 'America/Phoenix',
))
->execute();
drupal_set_message(t('@var users where updated.', array('@var' => $num_updated)), 'status');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment