Tags » Drupal

Install / Update Drush Using Composer

To install Drush 6.x (stable):

composer global require drush/drush:6.*

To install Drush 7.x (dev) which is required for Drupal 8:

composer global require drush/drush:dev-master

To update to a newer version (what you get depends on your specification in ~/.composer/composer.json): 55 more words


Change password through Drush

drush user-password  name_of_user --password="your_name"
e.g. drush user-password admin --password="anand"

Remember last clicked pager

Remember last clicked pager(for ajax views)

 * Implements hook_views_pre_view().
 * @see http://drupalcontrib.org/api/drupal/contributions%21views%21views.api.php/function/hook_views_pre_view/7
function modulename_views_pre_view(&$view) {
  // check view name
  if($view->name == 'my-view-name' && $view->current_display == 'view-display-name') {

    if(isset($_SESSION['views_pages'])) {
      $page = $_SESSION['views_pages'];
    else {
      $page = 0;

    if(!empty($_REQUEST)) {
      $page = (isset($_REQUEST['page'])) ? 18 more words

Drupal: how to delete Fields with a lot of data inside

The problem:

in my Drupal Production instance, i need to remove some Fields. They are no more used but they are full of data already. in their DB tables i have millions of records and many GB occupied. 387 more words


Website Design Company In okhla

We are a team of website designers and developers In okhla having over 15 years of experience in serving businesses with top-notch website designs. As professionals, we firmly believe that website design is more than just a platform that informs potential clients about products and services. 263 more words


Website Design Company In Nirman Vihar

We are a talented bunch of website designers and developers holding enviable track record for creating award-winning website designs. We have also accomplished large number of SEO projects for over hundreds of businesses from varied industries. 263 more words


Website Design Company In Najafgarh

Hi! We are referred to as the leading professional web designers by our clients and the industry. The team comprises of a group of highly skilled… 271 more words