function mediafront_block_save in MediaFront 6
Same name and namespace in other branches
- 6.2 mediafront.module \mediafront_block_save()
- 7 mediafront.module \mediafront_block_save()
Implementation of hook_block_save
1 call to mediafront_block_save()
- mediafront_block in ./
mediafront.module - Implements hook_block
File
- ./
mediafront.module, line 574
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);
}
}