You are here

function theme_domain_locale_reset in Domain Locale 6

Same name and namespace in other branches
  1. 7 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.

1 call to theme_domain_locale_reset()
domain_locale_page in ./domain_locale.admin.inc
The domain language page callback router.

File

./domain_locale.admin.inc, line 187
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_fetch_array(db_query("SELECT language FROM {domain_locale} WHERE domain_id = %d", $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;
}