


"Source database does not contain a recognizable Drupal version."
I have installed two Drupal sites in my local Ubuntu desktop 15.10 Apache2 (2.4.12) environment: One is a fresh install of Drupal 8 and The second is a copy of an existing working site built with Drupal 7 (which is mostly core-modules based, very humble by means of... read more
How to get Final SQL query when using Views?
How do I get complete SQL query from Views, the one I could run in mysql directly.For example biggest stumbling block is fields part. Like below SELECT users_node.uid AS users_node_uid, node.created AS node_created, node.nid AS nid, users_node.mail AS users_node_mail,... read more
How to store data in database with Form API?
I’m new to developing Drupal 7 modules, and I can’t figure out why my custom module’s form data is not stored in my database’s table called ‘media_skins’. I followed the info explained in Creating modules – a tutorial: Drupal... read more
How to delete a scheduled task using Rules Scheduler?
I use the rules scheduler module (D7). So far all fine. What I use it for: a user registers with username and email this users then gets 4 emails over the next four weeks, sent by the scheduler BUT: In case a user wants to unsubscribe from these scheduled emails? How... read more
Bootstrap sub-theme override CSS
I just set up an new Drupal 8 website. I was used to use CSS injector on Drupal 7, but since the module is not ready yet, and I thought I’d better start with subthemes, I tried to create a new Boostrap subtheme. I used the CDN method, activated it in my admin... read more
How to send an automatic reply using webform?
I’d like to send an automatic reply to every user who fills the form “Thank you for registration”+ link to a restricted webpage on my website -available only to registered users who filled that form. Is it doable? read more
Ajax callback on select box change event not working on second time
I am building a form with form API in a custom module. Certain fields should be populated based on the selected value of a dropdown. User will select the pre-entered profiles, based on which other fields should be populated. I have used ajax callback on select box, it... read more
Pass raw html to #markup
I have some html content, it comes from a external library so i can not change it, it has many <span> and <div> tags with attributes like: <span style=”color: #0000ff;”>, but when i use: $render = array( ‘#markup’ =>... read more
Generating an absolute node URL from its node id
I think the question is self explanatory. I got a node ID and I need to create its absolute URL somehow. I can do this but (I think) this won’t work every where in the site: <a href=”?q=node/node-id”>Node Title</a> Please correct me if I... read more
config-import error: These entities need to be deleted before importing
I have two Drupal environments with the same system.site:uuid In the main Drupal I export the configuration with command: drush config-export deploy -y In the destination drupal I import the configuration with command: drush config-import deploy -y But I have this... read more
Grouped Exposed filters radio buttons : one in two no value ticked. How to programatically force default button be ticked?
Some exposed filters (radio buttons) aren’t systematically ticked when a view is displayed, causing an “An illegal choice has been detected. Please contact admin…” error message and No result found. Moreover, refreshing the same view, or... read more
Form API Field Permission
I am creating a custom form and storing data in custom table. I was wondering if there is any method to apply field level permission like $form[‘value’][‘#permission’] = array(‘access this field’); I know I am having field... read more
Remove separator from breadcrumb
How can I remove the < from the breadcrumb I tried implode(‘<‘, $value[‘data’]) but no luck function bootstrap_fit_breadcrumb($variables) { $breadcrumb = $variables[‘breadcrumb’]; if (!empty($breadcrumb)) { //$breadcrumb[] =... read more
Get title field from another content type in exposed filter
I have two content types: Project and Task. Project has an node reference field of Task – when you create a Task, you add reference to one of Project. I need to create a view of Project and add the expose filter of title of the Task. I’ve selected both... read more
How to programmatically add a link to an image field in a view
I have a view with an image field and other fields, and I need to link the rendered image, not the content which is one of the configuration choice, but on another computed filtered view. I think that I should use my_theme_preprocess_views_view_field_myviewname to... read more
Export and Import Taxonomies and Extra Fields
I created extra field in Login Form, I Installed even Extra Module (address) and create Taxonomies Now I want to Export these configurations to another Drupal. This Drupal is the Clone of the main Drupal. I Tried to use import/export Configuration... read more
Error while accessing admin section
I am facing the following error while trying to access Admin section in Drupal 8 (WAMP Server). I tried to install the Update manager module and from then I am facing this error. I am unable to access any Admin section of the website. But, I am able to login and... read more
How use views exposed filters with taxonomy and panels
I need some help with the use of contextual and exposed filters with taxonomy terms views using panels. Context: I have a panels taxonomy page overriding drupal default page. In this page I have a views content pane display listing nodes with contextual filter set to... read more