You are here

function media_gallery_block_save in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 media_gallery.module \media_gallery_block_save()

Implements hook_block_save().

File

./media_gallery.module, line 727

Code

function media_gallery_block_save($delta = '', $edit = array()) {

  // Save the block-related media gallery fields on the node.
  $node = node_load($delta);
  foreach ($edit['media_gallery_block_fields'] as $field) {
    $node->{$field} = $edit[$field];
  }
  node_save($node);
}