Fix for not able to make custom node entry page

  1. function cckwizards_perm() {
  2.   return array('access wizdeadlines', 'access wizevents');
  3. }
  4.  
  5.  
  6. function cckwizards_menu($may_cache) {
  7.   $items = array();
  8.  
  9.   if ($may_cache) {
  10.     // This is the minimum information you can provide for a menu item.
  11.     $items[] = array('path' => 'mydeadlines', 'title' => t('Create new deadlines'),
  12.       'callback' => 'cckwizards_mydeadlines',
  13.       'access' => user_access('access wizdeadlines'));
  14.  
  15.   }
  16.  
  17.   return $items;
  18. }
  19.  
  20.  
  21. function cckwizards_mydeadlines() {
  22.  
  23.         //$node = array('uid' => $user->uid, 'name' => $user->name, 'type' => 'deadlines');
  24.         //$output .= drupal_get_form('deadlines_node_form',$node);
  25.  
  26.         //$output .= '<pre>';
  27.         //$output .= print_r($node);
  28.         //$output .= '</pre>';
  29.        
  30.        
  31.         $form = array();
  32.         $form['title'] = array(
  33.                 '#type' => 'textfield',
  34.                 '#title' => t('Super Title'),
  35.                 '#default_value' => 'Fill In',
  36.                 '#required' => TRUE,
  37.         );
  38.        
  39.         $output .= drupal_get_form('deadlines_node_form', form_builder('deadlines_node_form', $form));
  40.        
  41.         return $output;
  42. }

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.