What is the rule on licensing and third party code? When you create a module that uses third party code, is there any instance in which it is "okay" to include it in the module as opposed to have the user download it themselves?

For instance, if you make a module that integrates a CKEditor plugin - I would think that you can't or rather, shouldn't put it into your module on drupal.org.

I see this here: https://www.drupal.org/node/422996

My gut tells me it is likely not good practice to bundle it up into your module.
My gut tells me it is likely not good practice to bundle it up into your module.

You shouldn't. That page starts out with:

This is the policy for 3rd party code libraries in Drupal's contribution repositories.

In general 3rd party libraries and content are forbidden, so do not commit any. Instead, document for your users how to find and install the library/content themselves.


The other way is exceptions and they're clearly defined and you need to request approval.