KnackForge

Primary tabs

Articles from KnackForge

This is one of the bothering issues we had lately in our project. I'm summarizing the list of causes and possible ways to fix / mitigate the same.

GitLab is a web-based Git repository manager with wiki and issue tracking features. GitLab is written in ruby on rails.

Drupal has a solid Ajax interface, we can hook into the Ajax events at various places. I will explain some 5 important methods,
 
1) beforeSerialize - called before data is packed and runs before the beforeSend & beforeSubmit

This blog describes how to hide "Promoted to front page" and "Sticky at top of lists" options from node editing page in Drupal.

Keeping your drupal modules folder very clear is important part of development. This is the common structure :

This blog describes how to solve PDOException - SQLSTATE[22003] - Numeric value out of range: 1264 Out of range. When you try to store large integer value in 'integer' field type, then you will get this error.

If you know the file id, it is really simple,Code:

$file = file_load($fid);
file_move($file, 'public://new_file_name);

How it works:

Steps for programmatically creating node in drupal7,1. Create a new node object.2. Save the object using the node_save() function.Basic Node Creation :

      This blog describes how to hide and override drupal status messages while creating and editing nodes.

This blog explains, how to create a CSV file using PHP and how to download the file instead of displaying it.

Pages