function icon_block_get_settings in Icon API 8
Same name and namespace in other branches
- 7 modules/icon_block/icon_block.module \icon_block_get_settings()
Retrieves the icon block settings.
Parameters
stdClass $block: The block object, if any.
Return value
array An associative array of icon block settings.
1 call to icon_block_get_settings()
- icon_block_form_alter in modules/
icon_block/ icon_block.module - Implements hook_form_alter().
File
- modules/
icon_block/ icon_block.module, line 44 - icon_block.module Provides icon integration with blocks.
Code
function icon_block_get_settings(stdClass $block = NULL) {
$settings = icon_block_defaults();
if (isset($block) && !empty($block->icon)) {
$settings = \Drupal\Component\Utility\NestedArray::mergeDeep($settings, (array) unserialize($block->icon));
}
return $settings;
}