function mediafront_block_configure in MediaFront 6.2
Same name and namespace in other branches
- 6 mediafront.module \mediafront_block_configure()
- 7 mediafront.module \mediafront_block_configure()
Implementation of hook_block_configure
1 call to mediafront_block_configure()
- mediafront_block in ./
mediafront.module - Implements hook_block
File
- ./
mediafront.module, line 530
Code
function mediafront_block_configure($delta = '') {
$form = array();
if ($delta == 'mediaplayer') {
$form['mediafront'] = array(
'#type' => 'fieldset',
'#title' => 'MediaFront Settings',
'#description' => 'This is a special media player block that will allow you to place a media player preset within any block region on your website. In addition, you can link to any view within that page to act as the playlist for this media player.',
);
$form['mediafront']['mediafront_block_preset'] = mediafront_preset_select_form(array(
'mediafront_preset' => variable_get('mediafront_block_preset', ''),
));
// Get a list of all views
$views = views_get_all_views();
$options = array(
'' => 'none',
);
foreach ($views as $view) {
if (!$view->disabled) {
$options[$view->name] = $view->name;
}
}
// Link this block to a view display.
$form['mediafront']['mediafront_block_playlist'] = array(
'#type' => 'select',
'#title' => 'Link to View',
'#description' => 'Select the view you would like to link to this media player. This view must be on the same page as this player to be linked, and must include a visible Content Id (node Id) within the fields of the view display to work as expected.',
'#options' => $options,
'#default_value' => variable_get('mediafront_block_playlist', ''),
);
}
return $form;
}