You are here

function pmteam_form in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 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(
    array(
      'text' => t('Teams'),
      'path' => 'pm/teams',
    ),
  );
  pm_set_breadcrumb($breadcrumb);
  return node_content_form($node, $form_state);
}