You are here

function instagram_block_block_save in Instagram Block 7

Implements hook_block_save().

Save the information from the configuration form to a drupal variable.

File

./instagram_block.module, line 176
Module file for the instagram_block module.

Code

function instagram_block_block_save($delta = '', $edit = array()) {
  switch ($delta) {
    case 'instagram_block':
      $variables = variable_get('instagram_block_user_block_settings', array());
      $save_values = array_merge($variables, $edit);
      variable_set('instagram_block_user_block_settings', $save_values);
      break;
    case 'instagram_block_tag':
      $variables = variable_get('instagram_block_tag_block_settings', array());
      $save_values = array_merge($variables, $edit);
      variable_set('instagram_block_tag_block_settings', $save_values);
      break;
  }
}