You are here

function node_field_update_7003 in Node Field 7.2

Add 'hidden' field.

File

./node_field.install, line 124
Install/update/uninstall scripts for node_field module.

Code

function node_field_update_7003() {
  if (!db_field_exists('node_field', 'hidden')) {
    $field = [
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'size' => 'tiny',
      'default' => 0,
    ];
    db_add_field('node_field', 'hidden', $field);
  }
}