You are here

function theme_domain_locale_reset in Domain Locale 7

Same name and namespace in other branches
  1. 6 domain_locale.admin.inc \theme_domain_locale_reset()

Theme a message at the top of domain locale pages.

Parameters

$domain: The $domain object for the selected domain.

Return value

Themed HTML messages.

File

./domain_locale.admin.inc, line 208
Provides admin functionality for domain specific language settings

Code

function theme_domain_locale_reset($domain) {
  $output = '';
  $output .= '<p>' . t('These settings will replace your default site language settings when %name is the active domain.', array(
    '%name' => $domain['sitename'],
  )) . '</p>';
  $data = db_query("SELECT language FROM {domain_locale} WHERE domain_id = :did", array(
    ':did' => $domain['domain_id'],
  ));
  if (!empty($data)) {
    $output .= '<p>' . t('You may <a href="!url">erase these settings</a> to restore the default behavior.', array(
      '!url' => url('admin/build/domain/language-reset/' . $domain['domain_id']),
    )) . '</p>';
  }
  return $output;
}