Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. function filefield_paths_form_alter(&$form, $form_state, $form_id) {
  2.  
  3.    dsm('filefield_paths_form_alter');
  4.  
  5.   $ffp = array();
  6.  
  7.   // Invoke hook_filefield_paths_form_alter().
  8.   //in this case will be file and image, dynamically creates hook name and calls the hook
  9.   //the hooks alter the form and add file/image settings to the fields
  10.  
  11.   foreach (module_implements('filefield_paths_form_alter') as $module) {
  12.     $function = $module . '_filefield_paths_form_alter';
  13.     $function($form, $ffp);
  14.   }
  15.  
  16.   // If supporting module enabled, show FileField Paths settings form.
  17.   //@TODO use correct field_settings_hooks
  18.  
  19.   //Es wird nur gealtert wenn die hooks in den icn files auch was altern
Add Comment
Please, Sign In to add comment