function node_update_7015

Enable node types that may have been erroneously disabled in Drupal 7.36.

Related topics

File

modules/node/node.install, line 940

Code

function node_update_7015() {
    db_update('node_type')->fields(array(
        'disabled' => 0,
    ))
        ->condition('base', 'node_content')
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.