function boxes_box_form_submit

cis7 boxes.module boxes_box_form_submit($form, $form_state)
cle7 boxes.module boxes_box_form_submit($form, $form_state)
elmsmedia7 boxes.module boxes_box_form_submit($form, $form_state)
icor7 boxes.module boxes_box_form_submit($form, $form_state)
meedjum_blog7 boxes.module boxes_box_form_submit($form, $form_state)
mooc7 boxes.module boxes_box_form_submit($form, $form_state)

Submit handler for the inline form.

1 string reference to 'boxes_box_form_submit'
boxes_form_alter in sites/all/modules/ulmus/boxes/boxes.module
Implements hook_form_alter().

File

sites/all/modules/ulmus/boxes/boxes.module, line 500

Code

function boxes_box_form_submit($form, $form_state) {
  if ($form_state['clicked_button']['#value'] == t('Cancel')) {
    return;
  }
  $box = boxes_factory($form_state['values']['plugin_key'], $form_state['values']);

  // if options_submit is defined let the box process the submit
  if (method_exists($box, 'options_submit')) {
    $box->options_submit($form, $form_state);
  }
  // Let's set the additional_classes as an option
  $box->options['additional_classes'] = isset($form_state['values']['additional_classes']) ? $form_state['values']['additional_classes'] : array();

  if (module_exists('spaces') && $space = spaces_get_space()) {
    $space->controllers->boxes->set($box->delta, $box);
  }
  else {
    $box->save();
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.