You are here

function heartbeat_forms in Heartbeat 7

Implements hook_forms(). All heartbeat template forms share the same form handler.

File

./heartbeat.module, line 946
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Code

function heartbeat_forms($form_id, $args) {
  $forms = array();
  if (preg_match('/^heartbeat_activity_form_/', $form_id)) {
    $forms[$form_id] = array(
      'callback' => 'heartbeat_activity_form',
    );
  }
  return $forms;
}