Web Development

How to create a calendar for a content type on Drupal

You just need to install the calendar module. Located on this url: https://drupal.org/project/calendar After install it you will have access to some new views as a template:[[{“type”:”media”,”view_mode”:”media_original”,”fid”:”35″,”attributes”:{“alt”:””,”class”:”media-image”,”height”:”620″,”style”:”line-height: 1.538em;”,”typeof”:”foaf:Image”,”width”:”1359″}}]]   If you use any of them It will show you the Views interface where you will be able to select the fields for consideration for the…

Read More

Get Values from field collection on Drupal 7

Let’s supose you have an user with a field collection named “field_certification” and you have a field that references to a field called field_class_type. $myuser = user_load($user->uid); //Get certifications ids without entity interpretation $certifications_array = $myuser->field_certification[LANGUAGE_NONE];   In $certifications_array you will obtain ids taht do not match the terms, so you need to conver them…

Read More