Featured
-
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Best 5 Lightweight PHP Frameworks for REST APIs Development
Are you ready to develop the Rest AP
by ankur.kumar -
PHP: Full-Stack Framework vs Micro Framework
A web framework can be described as a software fra
by ankit.bhatia -
How to get facebook profile picture by Facebook App
If you would like to get your profile picture in f
by vivek.rastogi -
Creating RESTful API in cakephp
This tutorial will help you to learn how to create
by pushpendra.rawat
Tags
Creating dynamic CSS styling
Basic ideas behind dynamic theming
In addition to creating templates that are displayed conditionally, the Drupal also provide us to apply CSS for specific conditions on any given page.
$classes this variable aid dynamic CSS styling. Cond...
Overriding Theme functions, Drupal 7
Overriding functions
Themable functions can be overridden by copying the functions and placing them in the active theme's template.php file though the template file is optional but this is the only file you can use override the function defied...
Enable https on localhost
enable https in localhost
For OS Ubuntu
sudo a2enmod ssl
service apache2 restart
-- If this doesn't work try this
sudo a2ensite default-ssl
service apache2 reload
Now hit your localhost
https/localhost
Logging and errors
Navigate to Logging and errors in the `DEVELOPMENT` section of the `Configuration`. This page provides a few options used to control how errors are displayed and logged
Under the ERROR MESSAGES TO DISPLAY you have three options
No...
Passing variables from PHP to JavaScript in Drupal 7
Drupal provide a mean to pass information easily to JavaScript. Many applications want to pass configuration information to JavaScript that runs on a page.
"Hello World!"), 'setting');
//Inline Js
drupal_add_js('alert(Drupal.settings.hellow...
Drupal 7 Adding Javascript and CSS file
including both of them to.info file
scripts[] = hello_world.js
stylesheets[screen][] = hello_world.css
Adding a JavaScript file and a CSS file to a page
$path = drupal_get_path('module', 'hello_world');
drupal_add_js($path . ...