Drupal Technical

Zyxware default image2
| 2 min read
Do you want to add a user to an organic group programmatically in Drupal, then here is a solution. In one of my Drupal module I had a requirement to add users programmatically to an organic group. So I have created a custom function in my module for this purpose. This uses the function og_group to add a user entity to a group. Refer the following code. Remember that, you can add only an existing user to a group. It will not create a new user.
Zyxware default image3
| 3 min read
One of our Drupal clients had requested us to look into the innards of their website and see if the site can contain the influx of new users without breaking a sweat. We went into action swiftly and while we were gathering the details of the site, we realized that we need to get the count of all users having a particular role. We used a simple query to get the details of the users. Read on to know how to get the count of all users having a particular role in a Drupal 7 website.
Zyxware default image2
| 3 min read
One of our clients had a problem that when they try to delete users who have signed up via mobile app they get an error saying they must enter a street address for the user before the account can be deleted. This was because users who sign up via the mobile app were not asked for their street address, but on the Drupal site the street address is a required field when a user signs up.
Fix Certbot Auto-Renew Error in Ubuntu
| 3 min read
Imagine if your Drupal site has more than 30-50 modules and you wanted to update them all or you want clear all Drupal cache. If you do it manually just by unzipping and run update.php or just click the clear cache it may takes more time. Hence if you can do this all process in one single command it will be easier for a developer. Here we can use drush commands to do all work with a single command and in few seconds.
Zyxware default image3
| 3 min read
Zyxware Technologies is extremely honoured to be part of this month's Drupal Meetup Singapore. Drupal Meetup Singapore is a series of community meetups that connects Drupal enthusiasts, developers, users, and people who are curious to know more about Drupal. The events are organized by Drupal Developer Network (Singapore) RoS Registered with UEN T12SS0015F.
Zyxware default image2
| 2 min read
Facebook OAuth module helps to extract data from user's Facebook account details and map that user's Drupal account during registration. The user details will be extracted directly from the Facebook account details and user can define the custom field types to be extracted with validations. Validations means the mandatory field info's that should be present in the Facebook account details before extract using the FBoauth API.
Fix Certbot Auto-Renew Error in Ubuntu
| 3 min read
In one of the Drupal sites were working on, the members of the site frequently found that the nodes they had created were crashing. They would enter content into the node fields and try to save the node. The node would appear to save with apparently no error message. They found that it was not accessible at all afterwards. This wasn't occurring for everyone. We checked the dblog and we saw that the users were getting the error PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect string value:. Read on to know how we solved this issue.
Fix Certbot Auto-Renew Error in Ubuntu
| 3 min read
Views Bulk Operation module is helpful in the cases where we need to perform a particular operation for more than one row in a view. Some of the operations includes deleting multiple contents, publishing/un-publishing contents, change the author of the content, send email etc. In one of our Drupal project I need to perform a action to add a single field for all rows. Drupal provides a hook to declare the required operations and handle extra changes to the bulk operations settings.
Zyxware default image3
| 3 min read
Entities are very important thing in Drupal. Entity type is connected with lot of tables in data type. i.e entity is a object oriented concept. Entities are used to show thw relation ship with different field tables. An entity is a container for bundles. Entities can contain multiple bundles. Examples of an entity are Node, User, File, Taxonomy term, Taxonomy vocabulary.