You are here

function domain_update_messages in Domain Access 7.3

Generates messages about required table updates for 7.x.3.

This function may be called during module installation, so we use $t to ensure that we use the correct translation function.

Parameters

&$messages: An array of translated status messages, passed by reference.

$list: An array of modules that require updates.

See also

domain_requirements()

2 calls to domain_update_messages()
domain_check_for_update in ./domain.module
Checks for tables not compatible with 7.x.3 and provides standard messages.
domain_requirements in ./domain.install
Checks module requirements.

File

./domain.module, line 4087
Core module functions for the Domain Access suite.

Code

function domain_update_messages(&$messages, $list) {
  $t = get_t();
  foreach ($list as $module => $data) {
    $updated = $t('updated by an administrator');
    if (user_access('administer domains')) {
      $updated = l($t('updated for compatibility'), 'admin/structure/domain/repair');
    }
    $messages[] = $t('@module has a domain_id of 0 and needs to be !updated.', array(
      '@module' => $data['name'],
      '!updated' => $updated,
    ));
  }
}