I'm wondering whether it is possible to simply click on a Drupal calendar tile (month view) and be automatically taken to the page for creating an event. The only thing I've found that comes close to this is the event calendar module, specifically the In-place Add/Edit/View of events in pop-up functionality. However I need more control over this and want it to use my own content type for creation.

My colleague, who creates many calendar events, wanted this functionality to save time.

2 Answers 2


The Calendar module has this functionality out-of-box.

  1. Edit your calendar view
  2. Under 'Format' Section, click 'Settings' for 'Show: Calendar Entities'
  3. Scroll down and find 'Add new date link' and select your content type.

Screenshot for step 2 Screenshot for step 3

  • Thank you for your response, Елин Й. That's exactly the functionality I'm after, however I'd like to put this function on he actual 'day' tile on the month calendar. Commented Oct 8, 2013 at 19:48

If you have custom module you can implement hook_views_pre_render(). It will allow you to change the views title before rendering.

function MYMODULE_views_pre_render(&$view) {
  if ($view->name == 'your_view_name') {
    $title  = drupal_get_title();

Not exactly but close to what you need.

  • Thank you for your response, it is helpful. Excuse my ignorance, but where is it best to add this function? I'm using views and calendar modules. Commented Oct 8, 2013 at 19:52
  • @user2540566 You put this code in your custom module file like yourmodule.module. However, what this code does is only to change the views title to a link to add a new content.
    – Elin Y.
    Commented Oct 8, 2013 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.