You are here

function twitter_block_block_configure in Twitter Block 7.2

Same name and namespace in other branches
  1. 7 twitter_block.module \twitter_block_block_configure()

Implements hook_block_configure().

File

./twitter_block.module, line 167
A module to provide simple Twitter blocks using the Twitter Search API.

Code

function twitter_block_block_configure($delta = 0) {
  if ($delta) {
    $config = twitter_block_block_get($delta);

    // Unserialize the timeline settings.
    $data = unserialize($config['data']);

    // Remove the serialized timeline settings.
    unset($config['data']);

    // Add the timeline settings to the block settings.
    $twitter_block = $config + $data;
  }
  else {
    $twitter_block = array();
  }
  return twitter_block_custom_block_form($twitter_block);
}