You are here

function nodewords_panels_page_handler in Nodewords: D6 Meta Tags 5

Handling of edit/delete form for panels (v2).

File

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

Code

function nodewords_panels_page_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['panel_page']->did, $form_values['nodewords']);
      }
      break;
    case t('Delete'):
      if ($form_values['confirm']) {
        _nodewords_delete('panels', $form_values->did);
      }
      break;
  }
}