theme_domain_conf_reset

Definition

theme_domain_conf_reset($domain)
domain_conf/domain_conf.module, line 352

Description

Theme a message at the top of domain configuration pages.

Parameters

$domain The $domain object for the selected domain.

Return value

Themed HTML messages.

Code

function theme_domain_conf_reset($domain) {
  $output = '';
  $output .= '<p>'. t('These settings will replace or supplement your default site settings when %name is the active domain.', array('%name' => $domain['sitename'])) .'</p>';
  $data = db_fetch_array(db_query("SELECT settings FROM {domain_conf} 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/conf-reset/'. $domain['domain_id']))) .'</p>';
  }
  return $output;
}