Created
March 1, 2017 17:41
-
-
Save drogers98/d34be4d36dbad2e2462833bcc26b1641 to your computer and use it in GitHub Desktop.
D7 update all pathauto checkboxes to use auto generated
This file contains hidden or 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 | |
// For the following query: | |
// UPDATE `pathauto_state` SET `pathauto`=1 WHERE `entity_type` = 'node' | |
$update_auto_aliases = db_update('pathauto_state') | |
->fields(array( | |
'pathauto' => 1, | |
)) | |
->condition('entity_type', 'node', '=') | |
->execute(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Temporarily add to template/node/etc or custom module, to set all checkbox values that are currently unchecked.