diff --git a/colorbox.module b/colorbox.module index e3d94d2..26f6d49 100644 --- a/colorbox.module +++ b/colorbox.module @@ -371,7 +371,7 @@ function colorbox_field_formatter_settings_form($field, $instance, $view_mode, $ '#type' => 'fieldset', '#title' => t('Replacement patterns'), '#theme' => 'token_tree', - '#token_types' => array($instance['entity_type'], 'file'), + '#token_types' => array_merge(array_keys($field['bundles']),array('file')), '#recursion_limit' => $recursion_limit, '#dialog' => TRUE, '#states' => array(