You are here

function radioactivity_http_port_delete_submit in Radioactivity 5

File

plugins/radioactivity_http.module, line 111

Code

function radioactivity_http_port_delete_submit($form_id, $form) {
  $port_id = $form['port_id'];
  drupal_set_message(t('Deleted port %id', array(
    '%id' => $port_id,
  )));
  $ports = _radioactivity_http_get_ports();
  unset($ports[$port_id]);
  variable_set('radioactivity_http_ports', $ports);
  drupal_goto('admin/settings/radioactivity/http_ports');
}