You are here

function invite_add in Invite 7.4

Add new invite page callback.

Parameters

string $type:

Return value

array|mixed

1 string reference to 'invite_add'
invite_menu in ./invite.module
Implements hook_menu().

File

includes/invite.admin.inc, line 161

Code

function invite_add($type) {
  $invite_type = invite_get_types($type);
  $invite = entity_create('invite', array(
    'type' => $type,
  ));
  drupal_set_title(t('Create @name', array(
    '@name' => entity_label('invite_type', $invite_type),
  )));
  $output = drupal_get_form('invite_form', $invite);
  return $output;
}