You are here

function opigno_certificate_preprocess_filter_tips in Opigno certificate 8

Same name and namespace in other branches
  1. 3.x opigno_certificate.module \opigno_certificate_preprocess_filter_tips()

Implements hook_filter_info_alter().

File

./opigno_certificate.module, line 296
Contains opigno_certificate.module.

Code

function opigno_certificate_preprocess_filter_tips(&$variables) {

  // @todo: the filter tips don't appear to be available in a regular alter
  // hook, but if there is one that would be a better place to alter them. On
  // the other hand, swapping out the plugin to change the filter tips seems
  // overly intrusive for a text change.
  if (isset($variables['tips']['Certificate WYSIWYG']) && !$variables['long']) {

    // @todo: a more complete list of tokens here.
    $variables['tips']['Certificate WYSIWYG']['list']['token_filter']['tip'] = t('Use tokens like [opigno_certificate:label] for the title for the opigno_certificate and [opigno_certificate:referencing_entity:label] for the training title.');
  }
}