You are here

function biblio_contributor_add in Bibliography Module 7.2

hook_menu callback function for biblio/add/[publication-type]

@global type $user

Parameters

type $type:

Return value

array

1 string reference to 'biblio_contributor_add'
biblio_menu in ./biblio.module
Implements hook_menu().

File

./biblio.module, line 3465

Code

function biblio_contributor_add() {

  // Create a new, empty biblio contributor object
  $contributor = entity_create('biblio_contributor', array());

  // Set page title
  // PASS_TRHOUGH as the second param tells the function to allow HTML in the
  // string we're giving because we've already checked to make sure it's safe.
  drupal_set_title(t('Create Contributor'), PASS_THROUGH);

  // Display the form
  return drupal_get_form('biblio_contributor_add_form', $contributor);
}