You are here

function og_panels_content_types_addedit_callback_subscribers in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 includes/groupcontent.inc \og_panels_content_types_addedit_callback_subscribers()
  2. 5 includes/groupcontent.inc \og_panels_content_types_addedit_callback_subscribers()
  3. 5.3 includes/groupcontent.inc \og_panels_content_types_addedit_callback_subscribers()
  4. 6 includes/og.panelscontent.inc \og_panels_content_types_addedit_callback_subscribers()
1 string reference to 'og_panels_content_types_addedit_callback_subscribers'
og_panels_panels_content_types in ./og_panels.module
Implementation of hook_panels_content_types()

File

includes/groupcontent.inc, line 182

Code

function og_panels_content_types_addedit_callback_subscribers($id, $panel_args, $conf = NULL) {
  $form['num_items'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of members'),
    '#description' => t('Maximum number of members that should appear on the list.'),
    '#default_value' => isset($conf['num_items']) ? $conf['num_items'] : 10,
    '#size' => 5,
  );
  $form['og_panels_subscribers_is_admin'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Group roles'),
    '#default_value' => isset($conf['og_panels_subscribers_is_admin']) ? $conf['og_panels_subscribers_is_admin'] : array(
      'members',
      'admins',
    ),
    '#options' => array(
      'members' => t('Standard members'),
      'admins' => t('Administrators'),
    ),
    '#description' => t('You may specify which types of group members appear in this listing.'),
  );
  $form['show_more'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show more link'),
    '#default_value' => isset($conf['show_more']) ? $conf['show_more'] : TRUE,
    '#description' => t('Should a <em>more</em> link appear when more members are in the group but not listed.'),
  );
  $form['show_picture'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show pictures'),
    '#default_value' => isset($conf['show_picture']) ? $conf['show_picture'] : og_is_picture(),
    '#description' => t('Should member pictures be shown in addition to member names.'),
  );
  return $form;
}