You are here

function hook_extlink_css_exclude_alter in External Links 8

Allow other modules to alter the excluded CSS selector settings.

Parameters

string $cssExclude: Comma separated CSS selectors for links that should be ignored.

1 invocation of hook_extlink_css_exclude_alter()
_extlink_get_settings_from_config in ./extlink.module
Helper function to prepare extlink JS drupalSettings from configuration.

File

./extlink.api.php, line 25
Hooks related to the extlink module.

Code

function hook_extlink_css_exclude_alter(&$cssExclude) {

  // Add one CSS selector to ignore links that match that.
  $cssExclude .= ', .my-module a.button';
}