You are here

function mediafront_block_save in MediaFront 7

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_block_save()
  2. 6 mediafront.module \mediafront_block_save()

Implementation of hook_block_save

File

./mediafront.module, line 518

Code

function mediafront_block_save($delta = '', $edit = array()) {
  if ($delta == 'mediaplayer') {
    variable_set('mediafront_block_preset', $edit['mediafront_block_preset']);
    variable_set('mediafront_block_playlist', $edit['mediafront_block_playlist']);
    $exclude = preg_split("/[\r\n]+/", $edit['mediafront_block_playlist_exclude']);
    $exclude = array_map(create_function('$item', 'return trim($item);'), array_filter($exclude));
    variable_set('mediafront_block_playlist_exclude', $exclude);
  }
}