You are here

function files_undo_remove_init in Files undo remove 7

Implements hook_init().

File

./files_undo_remove.module, line 11
Files undo remove.

Code

function files_undo_remove_init() {

  // Add the Javascript and css. This will disable the 'Remove' buttons
  // and add nice CSS to the table rows. We need todo this here, because
  // it's possible a field collection on say an existing node doesn't have
  // any files yet so the 'remove' button would fail on editing as well.
  drupal_add_js(drupal_get_path('module', 'files_undo_remove') . '/files_undo_remove.js');
  drupal_add_css(drupal_get_path('module', 'files_undo_remove') . '/files_undo_remove.css');
}