Projet

Général

Profil

Révision 7e72b748

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/includes/dependent.inc
44 44
 *
45 45
 * A fuller example, that hides the menu title when no menu is selected:
46 46
 * @code
47
 *function ctools_dependent_example() {
47
 * function ctools_dependent_example() {
48 48
 *  $form = array();
49 49
 *  $form['menu'] = array(
50 50
 *    '#type' => 'fieldset',
......
72 72
 *   );
73 73
 *
74 74
 *  return system_settings_form($form);
75
 *}
75
 * }
76 76
 * @endcode
77 77
 *
78 78
 * An example for hiding checkboxes using #prefix and #suffix:
79 79
 * @code
80
 *function ctools_dependent_example_checkbox() {
80
 * function ctools_dependent_example_checkbox() {
81 81
 *  $form = array();
82 82
 *  $form['object'] = array(
83 83
 *    '#type' => 'fieldset',
......
111 111
 *   );
112 112
 *
113 113
 *  return system_settings_form($form);
114
 *}
114
 * }
115 115
 * @endcode
116 116
 *
117 117
 * Deprecated:
......
125 125

  
126 126
/**
127 127
 * Process callback to add dependency to form items.
128
 *
129 128
 */
130 129
function ctools_dependent_process($element, &$form_state, &$form) {
131 130
  return $element;

Formats disponibles : Unified diff