You are here

function icon_block_get_settings in Icon API 7

Same name and namespace in other branches
  1. 8 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.

2 calls to icon_block_get_settings()
icon_block_form_alter in modules/icon_block/icon_block.module
Implements hook_form_alter().
icon_block_preprocess_block in modules/icon_block/icon_block.module
Implements hook_preprocess_block().

File

modules/icon_block/icon_block.module, line 42
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_array_merge_deep($settings, (array) unserialize($block->icon));
  }
  return $settings;
}