[CSUMB-252] Merge branch 'entity_reference' into 252-entity-reference-chunk
[CSUMB-252] Add CHUNK_TYPE portion of hooks where missing.
[CSUMB-252] Various small refinements to the chunks_entity_reference module.
[CSUMB-252] Use instance_settings instead of type_settings since the API changed.
[CSUMB-252] API CHANGE: Instead of providing $settings when building the chunk form, provide the $chunk_instance which contains the settings along with other potentially useful information.
[CSUMB-252] API CHANGE: $chunk_instance has been added as the separate argument in hook_CHUNK_TYPE_chunk_form_validate(). Make validation and empty check better for entity_reference chunk type.
[CSUMB-252] API CHANGE: Replaced $settings argument with $chunk_instance and $delta in hook_CHUNK_TYPE_chunk_type_settings_form(). Remove unnecessary values from entity_reference chunk type settings on validation.
[CSUMB-252] Fix typos in Chunk.js
[CSUMB-252] Do not allow the disabling of modules if they are being used for chunks out in the wild. Add some @TODOs.
[CSUMB-252] Because of the minor security issue, do not use the edit_in_place setting by default.
[CSUMB-252] Provide helpers to check if chunk types and isntances are in use. Utilize said helpers to prevent modules from being disabled or settings from being changed when they should not be.
[CSUMB-252] API CHANGE: Remove $field argument from hook_CHUNK_TYPE_chunk_type_settings_form() and add arguments $form and $form_state. Provide some helper functions for determining whether types or instances are in use and retrieving the entities associated with them. Delete chunks of a chunk instance upon its removal from the field instance.
[CSUMB-252] Update @TODOs for chunks module and submodules.
[CSUMB-252] Add "preview" flag to variables in chunk theme hook and utilize it in the entity reference chunk type so different view modes can be used for previews and views.
[CSUMB-252] Remove client-side preview functionality stub since this does not really make sense for a entity reference chunk. Also use relevant data for title and description of reference field.
[CSUMB-252] Do not allow the current entity to be referenced
[CSUMB-252] Make sure default chunk type settings are present for each chunk inside the widget form.
[CSUMB-252] chunk_type_in_use() should return TRUE if there are any chunk instances depending on the type instaed of field data.
[CSUMB-252] Finally delete the text chunk type.
[CSUMB-252] Move all chunks submodules to a "modules" directory because it is tidy.