You are here

function oa_widgets_content_visibility_edit_form in Open Atrium Core 7.2

Custom edit form to allow users to enable/disable selectable content types

4 string references to 'oa_widgets_content_visibility_edit_form'
oa_layouts_default_panels_mini in modules/oa_layouts/oa_layouts.panels_default.inc
Implements hook_default_panels_mini().
oa_layouts_panelizer_defaults in modules/oa_layouts/oa_layouts.panelizer.inc
Implements hook_panelizer_defaults().
oa_news_panelizer_defaults in modules/oa_news/oa_news.panelizer.inc
Implements hook_panelizer_defaults().
oa_widgets_content_visibility.inc in modules/oa_widgets/plugins/content_types/oa_widgets_content_visibility.inc

File

modules/oa_widgets/plugins/content_types/oa_widgets_content_visibility.inc, line 64

Code

function oa_widgets_content_visibility_edit_form($form, &$form_state) {
  $conf = $form_state['conf'];
  $form['mode'] = array(
    '#type' => 'select',
    '#options' => array(
      '' => 'Panel',
      'btn' => 'Button',
    ),
    '#title' => 'Mode',
    '#default_value' => $conf['mode'],
  );
  return $form;
}