You are here

instagram_block.api.php in Instagram Block 7

Hooks provided by the Instagram Block API.

File

instagram_block.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Instagram Block API.
 */

/**
 * Allow modules to alter block settings.
 *
 * @param string $delta
 *   Block delta. Either user block or tag block.
 * @param array $settings
 *   Block settings.
 * @param array $config
 *   Global Instagram config.
 *   @see instagram_block_admin_settings variable.
 *
 * @see instagram_block_block_view().
 */
function hook_instagram_block_settings_alter($delta, &$settings, &$config) {
  if ($delta == 'instagram_block_tag') {
    $settings['tag'] = 'Instagram';
  }
}

Functions

Namesort descending Description
hook_instagram_block_settings_alter Allow modules to alter block settings.