You are here

function hansel_taxonomy_action_add_term_path_info in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 taxonomy/hansel_taxonomy.module \hansel_taxonomy_action_add_term_path_info()

Callback for "add term path" action to generate the information line

Parameters

array $arguments Values from the configuration form.:

Return value

string

1 string reference to 'hansel_taxonomy_action_add_term_path_info'
hansel_taxonomy_hansel_action_types in taxonomy/hansel_taxonomy.module
Implements hook_hansel_action_types().

File

taxonomy/hansel_taxonomy.module, line 121
Hansel taxonomy integration

Code

function hansel_taxonomy_action_add_term_path_info($arguments) {
  if (empty($arguments['vid'])) {
    return t('Add term path');
  }
  else {
    $vocab = taxonomy_vocabulary_load($arguments['vid']);
    return t('Add term path using the vocabulary %vocab', array(
      '%vocab' => $vocab->name,
    ));
  }
}