You are here

function redhen_contact_add_page in RedHen CRM 7

Page callback for adding a contact.

Parameters

string $type: The redhen Contact Bundle name to create.

Return value

array The contact creation form.

1 string reference to 'redhen_contact_add_page'
redhen_contact_menu in modules/redhen_contact/redhen_contact.module
Implements hook_menu().

File

modules/redhen_contact/includes/redhen_contact.pages.inc, line 189

Code

function redhen_contact_add_page($type) {
  $contact = redhen_contact_create(array(
    'type' => $type,
  ));
  module_load_include('inc', 'redhen_contact', 'includes/redhen_contact.forms');
  return drupal_get_form('redhen_contact_contact_form', $contact);
}