You are here

function nodewords_panels_handler in Nodewords: D6 Meta Tags 5

Handling of edit/delete form for panels.

File

./nodewords.module, line 460
Assign META tags to nodes, vocabularies, terms and pages.

Code

function nodewords_panels_handler($form_id, $form_values) {
  switch ($_POST['op']) {
    case t('Save'):
      if (isset($form_values['nodewords']) && user_access('administer meta tags')) {
        _nodewords_set('panels', $form_values['did'], $form_values['nodewords']);
      }
      break;
    case t('Delete'):
      if ($form_values['confirm']) {
        _nodewords_delete('panels', $form_values['did']);
      }
      break;
  }
}