You are here

function uc_catalog_admin_settings in Ubercart 5

Determines if the "Product Catalog" vocabulary has been set up.

See also

uc_catalog_admin_form

1 string reference to 'uc_catalog_admin_settings'
uc_catalog_menu in uc_catalog/uc_catalog.module
Implementation of hook_menu().

File

uc_catalog/uc_catalog.module, line 623
Übercart Catalog module.

Code

function uc_catalog_admin_settings() {
  $output = '';
  $vid = variable_get('uc_catalog_vid', null);
  if ($vid) {
    $catalog = taxonomy_get_vocabulary($vid);
    $output .= t('Vocabulary %name is set as the product catalog. ', array(
      '%name' => $catalog->name,
    ));

    //$output .= l(t('Build a term hierarchy for products there.'), 'admin/content/taxonomy/'. $vid .'/add/term');

    //drupal_set_message($output);
    $output .= l(t('View the catalog here.'), 'admin/content/taxonomy/' . $vid);
  }
  $output .= drupal_get_form('uc_catalog_admin_form');
  return $output;
}