Rajesh Vishwakarma
  • Member for 8 years, 2 months
  • Last seen this week
extract views $row values
4 votes

I am facing same problem and get solution as below. Create a tpl as give in Style output under theme information. $arr_rows = $view->style_plugin->rendered_fields; <?php foreach($arr_rows as ...

View answer
What version is the CKEditor in the CKEditor module?
3 votes

In your browser with an open Drupal site: press the F12 key to open the console (or right click anywhere on the page and select "inspect") select "console" tab if not already ...

View answer
Declaration of DrushInputAdapter::hasParameterOption($values) must be compatible with Symfony
2 votes

I have updated my drush version from 8.1.10 => 8.1.15 using below command and working fine. composer global update drush/drush

View answer
How to create a drop down menu for monthly archives?
2 votes

I have create a new content type name with blog which have default fields(node title and body) Steps are given below. First create a view(jump menu) for monthly archive. Select post date of node ...

View answer
How to delete a node or a list of nodes with Drush?
1 votes

If you want to delete all nodes use the range() function as drush php-eval "node_delete_multiple(range(1,3000));"

View answer
Can I create nodes through drush for particular content type
1 votes

drush genc 5 --types=article create 5 article type node.

View answer
How to redirect to another page after submitting the ctools modal form
1 votes

Add destination for links. I have also similar problem with drual modal form. After user registration and forgot password I have to send it on thanks page. Create tpl file and make registration link ...

View answer
Is it possible to join dynamic tables (subqueries) using db_select()?
0 votes

Apply select query on the subquery result set. $sub_query = db_select('quiz_node_results', 'qnr'); $sub_query->join('quiz_node_results_answers', 'qnra' , 'qnra.result_id = qnr.result_id'); ...

View answer
Create "show all" link in Views pager
0 votes

A contributed module is available for the same. https://www.drupal.org/project/views_extra_pagers

View answer
Print module download pdf file name change characters into HTML entities
0 votes

A hook is available for this that is: Implements hook_print_pdf_filename_alter /** * Implements hook_print_pdf_filename_alter(). */ function MY_MODULE_print_pdf_filename_alter(&$pdf_filename, &...

View answer
System settings form data access validation
0 votes

I have fixed this using hook_file_download hook- /** * Implements hook_file_download(). */ function my_module_file_download($uri) { // Allow to view/download only Authenticated user. global $...

View answer
Alternate page for mysql connection error
0 votes

I have added this code in settings.php and working fine. try { require_once DRUPAL_ROOT . '/includes/database/database.inc'; Database::getConnection(); } catch (Exception $e) { header("...

View answer
how to force drupal to create tables with ENGINE=MyISAM
0 votes

Define 'mysql_engine' => 'MyISAM' in your hook_schima as given below: function hook_schema() { $schema['table_name'] = array( 'description' => 'Your description.', 'fields' => array( 'id'...

View answer
Update a single field when saving an entity
0 votes

Drupal 7 create new table for each field, there is no entry in this table if value is not available for this field. To save value in this field further use field_attach_update instead node_load.` $...

View answer
Redirect form out of modal window after submit
0 votes

I have also similar problem with drual modal form. After user registration and forgot password I have to send it on thanks page. Create tpl file and make registration link using below code. <?php ...

View answer