Drupal form option populate from loop and also make a custom form options. LAKHAN GEHARWAR September 12, 2020 $q = db_select('taxonomy_term_data','term') ->fields('term',array('tid','name')) ->condit... Continue Reading
how to solve get multiple parameters with same name from a URL in PHP LAKHAN GEHARWAR July 30, 2020 <!DOCTYPE html> <html> <body> <?php $str = "query%5Bquery%5D%5Bquery%5D%5Bquery%5D%5Bquery%5D%5Bdate%5D=20... Continue Reading
Teamviewer Trial Expired Fix - 100% working - Lifetime Free License LAKHAN GEHARWAR July 28, 2020 This tutorial and the steps involved have been performed on number of system and have been successful always. If you follow the instruction... Continue Reading
How To Import Large Sql File In XAMPP ? LAKHAN GEHARWAR June 13, 2020 We will use Command-Line Tools (Shell) to import large database SQL file. #1. Open the XAMPP Control Panel Where: usernam... Continue Reading
How to chage the page title in drupal 7 LAKHAN GEHARWAR June 11, 2020 /** * Implements hook_page_alter(). */ function MODULENAME_page_alter(&$page) { if(arg(0) == 'checkout') { $test =... Continue Reading
How to add css inline in drupal 7 LAKHAN GEHARWAR June 10, 2020 1. if you're calling drupal_add_css() from your own module (in my case, named custom.module) :- drupal_add_css(drupal_get_path(... Continue Reading
how to can i change the view labels LAKHAN GEHARWAR June 01, 2020 function modulename_views_pre_render(&$view) { if ($view->name == 'user_conversations') { //field title $vi... Continue Reading
Change displayed field value after form submit in drupal 7 LAKHAN GEHARWAR May 13, 2020 $order_state = commerce_order_state_load('invoiced'); $order_state["default_status"] = 'canceled'; $form_st... Continue Reading
how to hide exposed filter programmatically label and fields in drupal 7 LAKHAN GEHARWAR April 30, 2020 /** * Implements hook_form_alter(). */ function module_name_form_alter(&$form, &$form_state, $form_id) { if ( $form_id =... Continue Reading
Alter menu title hook_alter in drupal 7 LAKHAN GEHARWAR April 23, 2020 1. Alter menu title or add menu item programmatically? function YOURTHEMENAME_translated_menu_link_alter(&$item, $map) { glo... Continue Reading
How to override the view field in drupal 7 using hook LAKHAN GEHARWAR March 19, 2020 /** * Implements hook_views_pre_render(). */ function Moduelname_views_pre_render(&$view) { global $user; if ($view->n... Continue Reading
Show/Hide Column in Views Table in drupal 7 and drupal 8 LAKHAN GEHARWAR March 19, 2020 // Hide the Name Column when Nick Name is shown $('#edit-dyfield-field-girls-nickname').change(function() { if ($('#e... Continue Reading
Drupal Behaviors And Javascript LAKHAN GEHARWAR March 19, 2020 What is Drupal Behaviors? Definition:- Drupal Behaviors is the object in JavaScript that Drupal initializes after page load, and after... Continue Reading
how to send variable from .php file to .js file?(Drupal Behaviours) LAKHAN GEHARWAR March 19, 2020 You should use drupal_add_js() in your module,there is no need to output the variable in your .tpl.php: Drupal 7 Step:-1 <?php ... Continue Reading