decoupled_router-2.0.1/decoupled_router.api.php

decoupled_router.api.php
<?php

/**
 * @file
 * Hooks provided by the Decoupled Router module.
 */

/**
 * Perform alterations before to return the router info.
 *
 * @param array $output
 *   Nested matrix of basic elements that comprise the found entity.
 * @param array $context
 *   An array with the following keys:
 *   - entity: The type of the parent entity.
 */
function hook_decoupled_router_info_alter(array &$output, array $context) {
  if ($output['entity'] && $context['entity']) {
    $output['entity']['description'] = t('New relevant description.');
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc