You are here

function media_forms in D7 Media 7

Implements hook_forms().

File

./media.module, line 486
Media API

Code

function media_forms($form_id, $args) {
  $forms = array();

  // To support the multiedit form, each form has to have a unique ID.
  // So we name all the forms media_edit_N where the first requested form is
  // media_edit_0, 2nd is media_edit_1, etc.
  if ($form_id != 'media_edit' && strpos($form_id, 'media_edit') === 0) {
    $forms[$form_id] = array(
      'callback' => 'media_edit',
    );
  }
  return $forms;
}