You are here

function _viewfield_token_enabled in Viewfield 6

Check if the token replacements are enabled

3 calls to _viewfield_token_enabled()
viewfield_field in ./viewfield.module
Implementation of hook_field().
viewfield_select_process in ./viewfield.module
viewfield_widget in ./viewfield.module
Implementation of hook_widget().

File

./viewfield.module, line 347
Core functions.

Code

function _viewfield_token_enabled($field) {
  return $field['token_enabled'] && module_exists('token');
}