You are here

function hook_field_weight_preview_popups_alter in Field display weights (per node) 7.2

Parameters

$popups The array to be passed to beautytips_add_beautytips().: See the BeautyTips documentation for all available options. Fields are indexed as "field_weight_(field name)".

$variables The $variables array from the invoking process function.: You should normally write your own preprocess or process function to change these. However, if there is no other way to accomplish what you need, you can change them here. It does not affect the popups directly.

$hook The name of the function from which this hook was invoked.:

File

./field_weight.api.php, line 49

Code

function hook_field_weight_preview_popups_alter(&$popups, &$variables, $hook) {

  // Change the popup background color on a particular field to pink.
  $popups["field_weight_field_some_field"]["fill"] = "pink";
}