You are here

function field_token_value_get_wrapper_by_key in Field Token Value 7

Helper function to retrieve a single wrapper item.

Parameters

string $key: The wrapper key to retrieve the wrapper info for.

Return value

mixed An array containing the wrapper information or false if not found.

2 calls to field_token_value_get_wrapper_by_key()
field_token_value_field_formatter_settings_summary in ./field_token_value.module
Implements hook_field_formatter_settings_summary().
field_token_value_field_formatter_view in ./field_token_value.module
Implements hook_field_formatter_view().

File

./field_token_value.module, line 256
Provides a field type allowing the value to be set using tokens.

Code

function field_token_value_get_wrapper_by_key($key) {
  $wrappers = field_token_value_get_wrappers();
  return isset($wrappers[$key]) ? $wrappers[$key] : FALSE;
}