function _varbase_slideshow_form_alter in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
1 call to _varbase_slideshow_form_alter()
- _varbase_fpp_fieldable_panel_pane_form_alter in modules/
starter_kits/ varbase_fpp/ varbase_fpp.module - We need to catch all fieldable_panels_panes entity form, they have differant ids
File
- modules/
starter_kits/ varbase_fpp/ varbase_fpp.module, line 117
Code
function _varbase_slideshow_form_alter(&$form, &$form_state) {
$conf =& $form_state['conf'];
// @todo find a reasonable way to share this with Administrative title or another use case for it.
$form['title']['#description'] = t('This will be displayed in Admin interface only. <br /> please fill the title to be able to find the Slideshow in Admin content listing.');
$form['view_mode']['#access'] = FALSE;
$form['link']['#access'] = FALSE;
$views_diplay = _varbase_magic_get_views_display('varbase_fpp_slideshow');
// Add an option select to what display to use
$form['views_diplay'] = array(
'#type' => 'select',
'#title' => t('Slider Type'),
'#options' => $views_diplay,
'#default_value' => !empty($conf['views_diplay']) ? $conf['views_diplay'] : '',
'#weight' => -4,
);
// Add a custom submit handler to our custom option
$form['#submit'][] = 'varbase_fpp_content_type_modal_submit';
}