Help section

SadhooKlay - September 4, 2007 - 16:34
Project:dependantDropdown
Version:5.x-1.0-beta
Component:Code
Category:task
Priority:normal
Assigned:SadhooKlay
Status:active
Description

Please add the code to provide help :

<?php

/**
* Implementation of hook_widget_info().
*/
function dependantDropdown_help($section) {

 
$output = ''



  switch (
$section) {

    case
'admin/help#dependantDropdown':

     
$output = '<p>'. t('This modules adds a CCK type which defines a dropdown with a dependant value list upon the value of a different cck field ') .'<br />';

     
$output .= t('I.e. (the real need for whiah this module was created)').'</p>';

     
$output .= '<p>'. t('Two dropdowns').'<br />';

     
$output .= t('1. Measurement system').'<br />';
     
$output .= t('2. sizes').'</p>';
     
$output .= '<p>'. t('It is clear that dropdown 2 should be depenedant on the value of dropdown 1').'</p>';
     
$output .= '<p>'. t('- Unlike the activeselect module here all the values are configured ahead. There is no requerying the server for the values').'</p>';
     
$output .= '<p>'. t('Dev info (The PHP side is fairly simple and if something is not clear - it\'s not sphisticated, it\'s clumsy. I\'m a novice there)').'<br />';
     
$output .= t('1. Two forms are dealt in the module - First the setting of the additional info for the widget: Which is the influencing field, what are the filters Second the node form to where i pass to the Javascript side the array of the options and the filters. (i avoided the JSON functions, simply because they didn\'t work for me for some reason)').'</p>';
     
$output .= '<p>'. t('2. The javascript side: I create a backup node with all values, and each change i comeback to the clean one and filter according to the filter value').'</p>';

      break; 

  }
  return
$output;

}
?>

 
 

Drupal is a registered trademark of Dries Buytaert.