I have been working on Drupal 7 for almost two years now. During these two years I have worked on many hooks but hook_menu_alter() hook is the one of the mostly used one. Today i going to explain my experience with this hook.
In drupal 7 whenever admin selects to cancel user/s account, it provides multiple cancellation options. In this post I am going to explain how to create a create custom method like ‘Disable the account and make its content belong to the admin user.’
One of the great feature in drupal is tokens system. Tokens are reusable text that can be placed into documents via simple placeholders, like %site-name or [user]. In Drupal there are many default tokens are made available thru’ token module e.g. nodes, users, taxonomy as well as other site related tokens. For example to display site name we have [site:name] token, to display node author we have [node:author]. All these tokens are properties of entities. And if we add new field in node then these field will be available as token. For example [node:body] is the token where it will display body field.
In drupal 7 we have options to set default theme & admin theme. There are limitations, Admin theme will be available for roles which has access permission for admin theme. But in case if we have conditions to set specific theme for specific page based on user roles or specifying theme for particular node types, drupal core will not provide options to do these. We do have module available for this purpose - ThemeKey. But we can achieve by using drupal hooks also. In this post I am going to explain how we can change particular theme for different pages based on various conditions.
The much-awaited event, DrupalCamp Bangalore is finally here and the Garden City is all set to welcome the Drupal enthusiasts from all over India. The event will be scheduled from July 25-26 at CMRIT Bangalore and will be featuring a series of curated sessions and sprints.
As a drupal developer we use drush on daily basis. For example clearing the cache, downloading or enabling modules/themes, updating modules. All these commands comes with core but drupal also provides hooks to integrate with our custom modules. Today we are discussing about how we can write drush commands through our custom module. We are taking example - “Count of nodes by type”
Installing Apache Solr 5.2 has changed from 4.x. Spent lot of time figuring out for new version on Ubuntu 14.04. In this post I have noted down the steps to install Apache Solr-5.2.0 with Drupal 7 using Search API on Ubuntu 14.04.
Drupal 7 provides 8 basic email templates for registering, cancellation & password recovery. These settings we can find at ‘admin/config/people/accounts’ page. We will look into how can we disable these as per project requirement.
Drupal 7 provides accessing of nodes by roles & its permissions, The permissions can be set to different roles & based on permission nodes can be accessible for different operations like view, delete, create & update.
Recently I was working in a project where we needed to show page title in format of [ node count associated with taxonomy term] [taxonomy term page is associated with] | [site name]. By default drupal 7 provides page title “term name | site name” for term pages. Our requirement was to get page title 125 vegetable recipe blog | my site name. Here 125 is node count of vegetable recipe tag. This is how we have achieved this using hook_preprocess_html().
With Email Marketing Campaigns assuming a key role in the lead nurturing process, the entire endeavour can be streamlined using automation tools that a Drupal website easily integrates with.
KPIs for a Content Marketing Initiative are a window to the performance of your Content Assets that can be analysed and mined with the help of advanced content tracking tools and third party software.