You are here

function rh_file_form_file_entity_file_type_form_alter in Rabbit Hole 7.2

Implements hook_form_FORM_ID_alter().

This will add Rabbit Hole options to the file type form. These settings will be used as default for every file of this file type.

File

modules/rh_file/rh_file.module, line 29
Main module file for Rabbit Hole files module.

Code

function rh_file_form_file_entity_file_type_form_alter(&$form, $form_state) {

  // Add the Rabbit Hole form.
  rabbit_hole_form($form, 'file', $form['#file_type']->type, 'rh_file');
}