function ctools_node_terms_content_type_admin_title

Returns the administrative title for a type.

File

plugins/content_types/node_context/node_terms.inc, line 199

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);
}