You are here

function social_content_form in Social Content 7.2

Same name and namespace in other branches
  1. 7 social_content.admin.inc \social_content_form()

Form handler for global / instance settings.

1 string reference to 'social_content_form'
social_content_menu in ./social_content.module
Implements hook_menu().

File

./social_content.admin.inc, line 96
Social Content administration area. Provides menu callbacks for the Social Content administration area.

Code

function social_content_form($form, &$form_state, $type, $class, $action = NULL) {
  drupal_set_title($class
    ->getLabel());
  $form['#storage']['class'] = $class;
  $form += $class
    ->getForm($type);
  $form['Save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  $form['cancel'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel'),
  );
  return $form;
}