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.   include_once'../../contrib/filefield/filefield.module';
  7.   include_once '../../contrib/imagefield/imagefield_widget.inc';
  8.  
  9.   $form['package_name'] = array(
  10.     '#title' => 'Create Feature Package',
  11.     '#type' => 'textfield',
  12.     '#description' => 'Enter the name of the package',
  13.     );
  14.  
  15.   $form['package_intro'] = array(
  16.     '#title' => 'Package Introduction',
  17.     '#type' => 'textarea',
  18.     '#description' => 'Give a brief introduction to the package contents',
  19.     );
  20.  
  21.  $form['package_image'] = array(
  22.     '#title' => 'My title',
  23.     '#type' => 'imagefield_widget',
  24.     '#description' => 'My Description',
  25.   );
  26.  
  27.   $form['submit'] = array(
  28.     '#type' => 'submit',
  29.     '#value' => 'Create Package',
  30.   );
  31.    return $form;
  32. }

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.