You are here

function sharebar_ahah_csscontainer_callback in ShareBar 6

AHAH callback for custom css container id.

1 string reference to 'sharebar_ahah_csscontainer_callback'
sharebar_menu in ./sharebar.module
Implements hook_menu().

File

./sharebar.admin.inc, line 412
Admin page callbacks for the block module.

Code

function sharebar_ahah_csscontainer_callback() {
  $form = sharebar_ahah_csscontainer_callback_helper();
  $csscontainer = $form['displayoptions']['csscontainer'];

  // Remove the prefix/suffix wrapper so we don't double it up.
  unset($csscontainer['#prefix'], $csscontainer['#suffix']);

  // Render the output.
  $output = theme('status_messages');
  $output .= drupal_render($csscontainer);

  // Final rendering callback.
  drupal_json(array(
    'status' => TRUE,
    'data' => $output,
  ));
  exit;
}