


How to add an attribute to CkEditor 4.x iframe tag
Does anyone know of a clean way to add an attribute to an iframe tag, or to add an equivalent parameter to the src attribute? Here is what I am trying to do: I am using the iframe wysiwyg button in Ckeditor to allow users to paste in a video url from YouTube. The... read more
Email notification via private message module
I am using private message module to send an e-mail to all users. When I send mail, users can able to see the message in site only after logging in. There is an email notification settings in private message module. What is the settings to send mail to user using... read more
Translate untranslated strings
I downloaded and enabled translations for my Drupal core and modules using these Drush commands: drush dl l10n_update && drush en -y $_ drush language-add lt && drush language-enable $_ drush l10n-update-refresh drush l10n-update I got almost... read more
How to get the publishing and menu fields from the node edit form in the "Manage fields" tab?
I am wondering what is the cleanest way to customize the core node edit form fields like the publishing and menu options fields? They do not appear in the Manage fields tab, otherwise I would be able to organize them using modules like Display Suite, Field Groups, and... read more
Max length of text field
How can I increase the max lenght of Tab-Title ? read more
How to render entity reference data in field template?
I have a field collection with adding multiple items. In each item there is an entity reference field with multi-selection of contents. I can render entity reference content by target_id using node_load in an entity_reference field template. But it is getting only... read more
How do I replace part of a webform component label with a variable token?
I have webform component labels like this: Did [your pet] have any illnesses? and I want to replace [your pet] with a variable token? Do I need to write a custom module or can I do this by editing one of the theme .tpl files? Tried this code as suggested: <?php /*... read more
How to prevent closing ctools modal window with ESC?
I am using ctools modal window to edit some records with Form API. How can I prevent closing window with ESC key and the default close button? read more
How do I integrate media (e.g. attaching audio) to nodes?
I installed the Media Entity module for Drupal 8. I thought it would somehow facilitate adding Mp3, etc, as Media does in Drupal 7, where I could specify a media player type for an audio file. (And things work fairly well.) I am updating my site to Drupal 8 and it... read more
Need of re-indexing on search on Drupal site?
My client site has a table whose data is coming from Indexed view, sometimes updates made to the data wont reflect in the view table. Elysia cron is installed and up running, which should update the content when changes are made. Then what is need of re-indexing the... read more
Set default "Quantity" dropdown select in product. Commerce Kickstart
Using the Commerce Kickstart distribution I have a shop site listing products. The product page shows a Quantity widget to allow the buyer to choose the product quantity to be added to the cart. (look my capture) I need to change this widget to the standar select list... read more
How to change placeholder title of search box?
I have placed 2 search box in ‘node/92’ page at two different region one is at header region and another is at content region ,I have to change the placeholder text of both search box as abc and xyz respectively my code is: function... read more
Adding fields, account registrations and editing profile
By default Drupal has a profile system in place that stores user name, password and email. Profile2 extends this to allow specific roles upon account creation as well as more options for adding fields. The problem is there are now two sections for adding fields, two... read more
Display one image of commerce product in product display view
I have created a view which display indexed nodes (product displays) in teaser mode. The commerce product entity has a field called field_images which contain several images. In teaser display mode of the commerce product, I choose to display Images. On the views, for... read more
Automated login with LDAP always returns error
I have successfully setup LDAP module to authenticate users (and create new users). This is done through manual login form. Now I’m trying to enable automated single sign-on, but with no luck. I have enabled LDAP SSO, and selected Turn on automated single... read more
I want to add css class to a field inside hook_field_widget_form_alter, but it doesn’t work!
in this link https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_widget_form_alter/7 it describes that we can add css class to an element in a form via this code function hook_field_widget_form_alter(&$element, &$form_state,... read more
Create a form programmatically and display result on template
I’m trying to create a simple page with a form. With the different filled fields I want to execute different EntityFieldQuery in the HOOK_form_submit. To finish I want to display the result of myEntityFieldQueryunder the form like aView`. For the moment I... read more