Fix for Hook Form Alter Module

  1. <?php
  2. /**
  3. * Display help and module information
  4. * @param path which path of the site we're displaying help
  5. * @param arg array that holds the current path as would be returned from arg() function
  6. * @return help text for the path
  7. */
  8. function cc_help($path, $arg) {
  9.   $output = '';  //declare your output variable
  10.   switch ($path) {
  11.     case "admin/help#cc":
  12.       $output = '<p>'.  t("Custon mods for conservation corps site") .'</p>';
  13.       break;
  14.   }
  15.   return $output;
  16. } // function cc_help
  17.  
  18. function modulename_form_alter(&$form, $form_state, $form_id) {
  19.     // Normally a switch is used because you may want to alter more than
  20.     // one form and it is easy to add a new case for each form.
  21.     switch ($form_id) {
  22.       // This is our form ID.
  23.       case 'search_block_form':
  24.           return dsm($form);
  25.         break;
  26.   }
  27. }

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.