function hook_insert_styles in Insert 8.2
Returns a list of styles to be added to the list of styles available to Insert.
@example return $insertType === 'text' ? ['insert_text__plain' => ['label' => t('Plain')]] : [];
Parameters
string $insertType:
Return value
array Schema: [<string> style_name => ['label' => <string>, 'weight' => <int>]] or for image styles: [<string> style_name => <ImageStyle>]
See also
3 functions implement hook_insert_styles()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- insert_colorbox_insert_styles in modules/
insert_colorbox/ insert_colorbox.module - Implements hook_insert_styles().
- insert_insert_styles in ./
insert.module - Implements hook_insert_styles().
- insert_responsive_image_insert_styles in modules/
insert_responsive_image/ insert_responsive_image.module - Implements hook_insert_styles().
3 invocations of hook_insert_styles()
- InsertUtility::aggregateStyles in src/
Utility/ InsertUtility.php - _insert_evaluate_default_style in ./
insert.module - Returns the default style or a fallback style when the defined default style is not compatible to the $insertType.
- _insert_retrieve_styles in ./
insert.module
File
- ./
insert.api.php, line 41 - This file documents hooks provided by the Insert module.
Code
function hook_insert_styles($insertType) {
return [];
}