function bueditor_plus_update_7001 in BUEditor Plus 7
Same name and namespace in other branches
- 7.2 bueditor_plus.install \bueditor_plus_update_7001()
 
Create the global field.
File
- ./
bueditor_plus.install, line 48  - Install, update and uninstall functions for the bueditor_plus module.
 
Code
function bueditor_plus_update_7001() {
  // Check if the global field exists and if not go ahead and add it.
  if (!db_field_exists('bueditor_plus_profiles', 'global')) {
    db_add_field('bueditor_plus_profiles', 'global', array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}