Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By qqboy on
For example, we see
$validation_rules['base']['min'] = array(
'name' => 'min',
'description' => t('Min'),
'default_value' => '10',
'message' => t('Please enter a value greater than or equal to {0}.'),
);
Then, we dmp:
// min (Array, 4 elements)
// name (String, 3 characters ) min | (Callback) min();
// description (String, 3 characters ) Min | (Callback) Min();
// default_value (String, 2 characters ) 10
// message (String, 50 characters ) Please enter a value greater than or equal to {0}.
can some one tell us why there is a callback with name ?
Comments
Because devel is doing:
Because devel is doing:
.. and there is a PHP function for "min":
http://php.net/manual/en/function.min.php
So it's just a coincidence!
:-)
I like cookies!
can you explain a little bit
can you explain a little bit more.
i feel difficult to understand.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js
dpm() automatically adds a
dpm() automatically adds a path to the callback function, if the callback function exists. min() exists, so the path to the callback function is added to the array. It's coincidence in this case, as you are not calling min(). The dpm() function is just trying to give some additional information as a helper.
ok thank great J
ok thank great J
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js