You are here

function pmteam_form in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmteam/pmteam.module \pmteam_form()
  2. 7 pmteam/pmteam.module \pmteam_form()
  3. 7.2 pmteam/pmteam.module \pmteam_form()

Implements hook_form().

Drupal needs for us to provide a form that lets the user add content. This is the form that the user will see if they go to node/add/pmteam.

File

pmteam/pmteam.module, line 70
Main module file for the PM Team module.

Code

function pmteam_form($node, &$form_state) {
  $breadcrumb = array(
    l(t('Project Management'), 'pm'),
    l(t('Teams'), 'pm/teams'),
  );
  drupal_set_breadcrumb($breadcrumb);
  return node_content_form($node, $form_state);
}