You are here

function constant_contact_forms in Constant Contact 7.3

Implements hook_forms().

File

./constant_contact.module, line 863

Code

function constant_contact_forms($form_id, $args) {
  $forms = array();
  $total_blocks_available = variable_get('cc_total_blocks_available', CC_BLOCK_COUNT);
  for ($i = 1; $i <= $total_blocks_available; ++$i) {
    $forms["constant_contact_signup_form_{$i}"]['callback'] = 'constant_contact_signup_form';
    $forms["constant_contact_signup_form_{$i}"]['callback arguments'] = array(
      $i,
    );
  }
  return $forms;
}