


Enter object with dsm
i am actualy trying to read a field value in my panelized node. I want to recieve the data in the red marked field, as u can see in my screenshot. I tried to following: <?php... read more
drupal_set_message() shows a message twice when called from hook_init()
Basically the issue is that drupal_set_message() shows a message twice on some pages, when it is called from hook_init(). How can I avoid it happens? read more
Profile field create and set default value programmatically
I need the checkbox to be checked by default. Below is my code, notice the ‘default_value’ under the settings array. $field_instance = array( ‘field_name’ => $fielddef[‘field_name’], ‘type’ =>... read more
Best way to use image styles with Media and WYSIWYG?
Up to now, I’ve been using the Insert + WYSIWYG + CKEditor to insert images with specific Image Styles in a wysiwyg interface. This works well, and it’s very easy to select and apply image styles (including colorbox variants) using Insert. I’m... read more
Order nodes based on entity reference filter
In my Drupal 7 website I have an A content type with an entity reference ‘parent’ field which I use to link to nodes of a B content type. I have to implement a way to sort A nodes basing on their B parent. Modules such as Nodeorder and Nodequeue... read more
wysiwyg ckeditor inline styling not working
I’m using wysiwyg api with ckeditor, but I can’t make it to use inline styles like when I use indent from editor, it actually drops the style (which is margin-left) in output. it’s not an override, it actually doesn’t even appear in the code... read more