No Image

Ways to print a block Drupal

February 2, 2012 d2ev 0

We can print blocks in drupal in different ways bases on block type. Method 1: $block = module_invoke(‘module_name’, ‘block_view’, ‘block_delta’); print render($block); // example $songs_added [Read Full]

No Image

Using PDO in Drupal 7

October 28, 2011 d2ev 0

Below is the list of SQL queries used to use in Drupal coding -: (1)Simple select query: SELECT * FROM users; $query = db_select(‘users’); $query->Fields(‘users’); [Read Full]