I am new to drupal need help i have a content type Job where i have some custom fields 5-6.
now i create a node for that content type with custom fields entry. for example that node is 4 now i created a webform.
Requirement is : show node id = 4 field data on top of webform which i created.
I'm using drupal 8.8 and I'm looking for a way to display in my taxonomy exposed filters, only taxonomies terms which are related to contents(nodes). In other words i don't want to dysplay terms which are not related to content. I suppose that i have to make a hook_form_views_exposed_form_alter. But i don't know how to retrieve only the "good" terms.
I am able to get ajax working on other form elements, but for some reason I am unable to find the event for the managed_file element. Am I missing something?
$form['import_file'] = array(
'#type' => 'managed_file',
'#name' => 'import_file',
'#title' => t('Select Import File'),
'#size' => 20,
'#description' => t('CSV only for now'),
'#upload_validators' => $validators,
'#upload_location' => 'public://easy_import',
'#progress_indicator' => 'bar',
Hi,
I'm using this code to generate a password valid for a Drupal7 site, with this code:
require_once '../includes/bootstrap.inc';
require_once '../includes/password.inc';
echo "Encrypted password: ".user_hash_password(trim('11111111111'));
Why does the result change every time I run the code?
Shouldn't the hash of "11111111111" always be the same?