You are here

function commons_bw_forms in Drupal Commons 7.3

Implements hook_forms().

The bundle is added to the partial node form ID, to prevent duplicate IDs on the same page, but all of the partial forms are built with the same function.

File

modules/commons/commons_bw/commons_bw.module, line 81

Code

function commons_bw_forms($form_id, $args) {
  $forms = array();
  if (strpos($form_id, 'commons_bw_partial_node_form__') === 0) {
    $forms[$form_id] = array(
      'callback' => 'commons_bw_partial_node_form',
    );
  }
  return $forms;
}