Fix for Fix for Imagefield widget includ error

  1. /**
  2.  * Form for creating initial nodequeue
  3.  */
  4. function create_feature_package_form() {
  5.   //dsm(module_invoke('imagefield', 'elements'));
  6.  
  7.   module_load_include('inc','imagefield','imagefield_widget');
  8.   module_load_include('module','filefield');
  9.    
  10.   $form['package_name'] = array(
  11.     '#title' => 'Create Feature Package',
  12.     '#type' => 'textfield',
  13.     '#description' => 'Enter the name of the package',
  14.     );
  15.  
  16.   $form['package_intro'] = array(
  17.     '#title' => 'Package Introduction',
  18.     '#type' => 'textarea',
  19.     '#description' => 'Give a brief introduction to the package contents',
  20.     );
  21.  
  22.  $form['package_image'] = array(
  23.     '#title' => 'My title',
  24.     '#type' => 'imagefield_widget',
  25.     '#description' => 'My Description',
  26.   );
  27.  
  28.   $form['submit'] = array(
  29.     '#type' => 'submit',
  30.     '#value' => 'Create Package',
  31.   );
  32.    return $form;
  33. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.