You are here

function crumbs_CrumbsEntityPlugin_TokenDisabled::describe in Crumbs, the Breadcrumbs suite 7.2

Parameters

crumbs_InjectedAPI_describeMultiPlugin $api:

string $entity_type:

array $keys:

Overrides crumbs_EntityPlugin::describe

File

lib/CrumbsEntityPlugin/TokenDisabled.php, line 9

Class

crumbs_CrumbsEntityPlugin_TokenDisabled

Code

function describe($api, $entity_type, $keys) {
  $patterns = variable_get('crumbs_' . $entity_type . '_parent_patterns', array());
  foreach ($keys as $key => $title) {
    if (empty($patterns[$key])) {
      unset($keys[$key]);
    }
    else {
      $api
        ->addRule($key, $title);
      $api
        ->descWithLabel('"' . check_plain($patterns[$key]) . '"', t('Parent'), $key);
    }
  }
}