1

I contribute a module that provides additional formatters for the core image and link fields.

To protect the module from uninstall, I need a possibility to check if a providet formatter used on a image or link field.

To do this, I use the hook_system_info_alter() with $info['required'] = TRUE; $info['explanation'] = t('Field formatter(s) in use');

Someone has an idea?

1 Answer 1

0

Solved.

See the function dsbox_system_info_alter() of the Drupal Swipebox module to get detailed informations of the solution.
Or, here is the link to the code of the module file: dsbox.module

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.