You made a PHP script associated to a Drupal module and you want to be alerted of custom special events or big fails
In your module file, just implement the hook_mail() like this : Read More →
You made a PHP script associated to a Drupal module and you want to be alerted of custom special events or big fails
In your module file, just implement the hook_mail() like this : Read More →
If you’re a new Drupal user, you may have already created a fresh content type manually to organize your site correctly. But what happens if you want to create this content type with your module installation and don’t want to do it manually each type you install it on a new website ?. Here is how to create a content type programmatically with Drupal 7. Read More →
Taxonomies are very useful in Drupal when you need to organize your content but sometimes the default and available fields are not enough. Here is an example how you can add some to you taxonomy vocabulary.
If you want to create a taxonomy from a PHP script, here is what you could do: Read More →
If you want to set some default properties on your freshly created custom node type on Drupal, you have to use variable_set syntax like this:
In your <my_custom_module_name>.install file, add these lines according to what you need to set.
If you want a language to be set by default, use this:
1 |
variable_set('language_content_type_<my_custom_module_name>',0); |
I had a little problem with Debian that didn’t want to restart after an update. Of course, no site were working.
I had this message log:
1 2 3 4 5 6 7 |
# /etc/init.d/nginx restart Restarting nginx: nginxnginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] still could not bind() |
nginx created a new file : /etc/nginx/sites-available/default
I just renamed it to default.old so it takes mine instead of the default one and it works again !
Hope it helped you !
Recent Comments