function jquery_colorpicker_field_info_alter in Jquery Colorpicker 8.2
Implements hook_field_info_alter().
Deprecated
as of Jquery Colorpicker update 8200. Will be removed in Jquery Colorpicker 8.x-3.x, and/or 9.x-1.x.
See also
jquery_colorpicker_update_8200()
File
- ./
jquery_colorpicker.module, line 53 - Holds hooks for the JQuery Colorpicker module.
Code
function jquery_colorpicker_field_info_alter(&$info) {
// Running jquery_colorpicker_update_8200() requires the existence of the
// jquery_colorpicker field type, however the field type is obsolete after
// that update has been run. As such, if the schema version is equal to or
// above 8200, the field type is removed from the list of field types.
if (drupal_get_installed_schema_version('jquery_colorpicker') >= 8200) {
unset($info['jquery_colorpicker']);
}
}