You are here

function exclude_node_title_update_7100 in Exclude Node Title 7

Implements hook_update_N().

File

./exclude_node_title.install, line 38
Exclude Node Title module install/schema hooks.

Code

function exclude_node_title_update_7100() {
  $exclude_array = array(
    'full' => 'full',
  );
  if (variable_get('exclude_node_title_remove_title', FALSE)) {
    $exclude_array['teaser'] = 'teaser';
  }
  foreach (_node_types_build()->names as $key => $val) {
    switch (variable_get('exclude_node_title_content_type_value_' . $key)) {
      case 'all':
      case 'user':
        variable_set('exclude_node_title_content_type_modes_' . $key, $exclude_array);
    }
  }
  variable_del('exclude_node_title_remove_title');
}