You are here

function forum_access_update_6105 in Forum Access 6

Add missing default records to the {forum_access} table.

File

./forum_access.install, line 277
Install, update and uninstall functions for the forum_access module.

Code

function forum_access_update_6105() {
  if (!module_exists('forum_access')) {
    return abort_disabled_update();
  }
  $forums = _forum_access_update_table();
  $msg = t('Please see the <a href="@href">release notes for release 6.x-1.5 of the @Forum_Access module</a>.', array(
    '@href' => 'http://drupal.org/node/936848',
    '@Forum_Access' => 'Forum Access',
  ));
  if (!empty($forums)) {
    $msg .= '<br />' . t('The following forums have been updated as explained in the release notes:') . '<ul><li>' . implode($forums, '</li><li>') . '</li></ul>';
  }
  drupal_set_message($msg, 'warning');
  return array();
}