Created
May 3, 2016 21:37
-
-
Save generalredneck/ee356166b4a326f85dbb47ec69dfbbbf to your computer and use it in GitHub Desktop.
update hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wg_test | |
type: module | |
description: My Awesome Module | |
core: 8.x | |
package: Custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wg_test_install() { | |
db_update('node__body') | |
->condition('entity_id', 1) | |
->fields(array('body_value' => "PIECE OF SOMETHING")) | |
->execute(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment