You are here

function makemeeting_sendfw in Make Meeting Scheduler 7

Same name and namespace in other branches
  1. 6 makemeeting.pages.inc \makemeeting_sendfw()

The send link forward page.

Parameters

string $poll_url:

1 string reference to 'makemeeting_sendfw'
makemeeting_menu in ./makemeeting.module
hook_menu implementation

File

./makemeeting.pages.inc, line 82

Code

function makemeeting_sendfw($poll_url) {

  // Retrieve the node
  $node_id = db_query("SELECT nid FROM {makemeeting_poll_heads} WHERE url = :url", array(
    ':url' => $poll_url,
  ))
    ->fetchfield();
  $node = node_load($node_id);

  // Breadcrumb navigation
  drupal_set_breadcrumb(array(
    l(t('Home'), NULL),
    l(t('Make Meetings'), 'makemeeting'),
    l(t("Question: @question", array(
      '@question' => $node->title,
    )), 'makemeeting/' . $node->poll_url),
    l(t("Send forward"), 'makemeeting/' . $node->poll_url . "/sendfw"),
  ));
  if (variable_get('makemeeting_send_email_enabled', '1') == 0) {
    return t('Send forward function is disabled by admin.');
  }
  return drupal_get_form("makemeeting_sendfw_form", $node);
}