You are here

function forward_share_tab in Forward 5

Implementation of hook_share_tab().

File

./forward.module, line 1308

Code

function forward_share_tab($op, $args, $node = NULL) {
  switch ($op) {
    case 'settings':
      $form['forward_settings'] = array(
        '#type' => 'item',
        '#value' => t('Includes the Forward form.'),
      );
      return $form;
    case 'process':
      $path = drupal_get_path_alias('node/' . $node->nid);
      return drupal_get_form('forward_form', $path, $node->title);
  }
}