You are here

function radioactivity_arbitrary_source_admin_delete_submit in Radioactivity 5

File

plugins/radioactivity_arbitrary_source.module, line 234

Code

function radioactivity_arbitrary_source_admin_delete_submit($form_id, $form) {
  $source = $form['source'];
  $target = $form['target'];
  drupal_set_message(t('Deleted arbitrary source %s for target %t', array(
    '%s' => $source,
    '%t' => $target,
  )));
  $sources = _radioactivity_get_arbitrary_sources();
  unset($sources[$target][$source]);
  variable_set('radioactivity_arbitrary_sources', $sources);
  drupal_goto('admin/settings/radioactivity/arbitrary_sources');
}