ctools_node_terms_content_type_admin_title

  1. drupal
    1. 6 node_terms.inc function
    2. 7 node_terms.inc function
Drupal 7 ctools_node_terms_content_type_admin_title($subtype, $conf, $context)

Returns the administrative title for a type.

File

sites/all/modules/ctools/plugins/content_types/node_context/node_terms.inc, line 197

Code

function ctools_node_terms_content_type_admin_title($subtype, $conf, $context) {
  $placeholders['@s'] = $context->identifier;
  if (!empty($conf['vid'])) {
    $vocabulary = taxonomy_vocabulary_load($conf['vid']);
    $placeholders['@vocabulary'] = $vocabulary->name;
    return t('"@s" terms from @vocabulary', $placeholders);
  }
  return t('"@s" terms', $placeholders);
}