Drupal News

Drupal Dev Thursdays: Post here with development questions or discussion

Issue 303

Agiledrop.com Blog: AGILEDROP: Global Drupal Training Days are near

  • From time to time, we check Drupical. It's a website, where »you can Find Drupal events with ease!« With the help of it, we already presented you Drupal Camps, Virtual Drupal Camps, DrupalCons, Mini Drupal Camps and Global Drupal Sprint week. One of the nearest events is Drupal Introduction Workshop, listed on Trainings, so we’ll take a look at Drupal Trainings. More specifically, Global Drupal Training Days. To be completely fair, we presented Global Drupal Sprint Week a little late last time. We will not be making the same »mistake« again, so we'll look at the Drupal Global Training Days… READ MORE

    3 days 23 hours ago

Is there a hook in template.php where i can call javascript to be injected into a page?

  • Calling this function inside the preprocess_html(&$variables, $hook) {

    $jsWrapper = 'jQuery(document).ready(function () { jQuery.get("http://ipinfo.io", function(response) {alert(response.ip);}, "json");});'; $jsWrapper = str_replace("%jsToInject%", $cw_getIP, $jsWrapper); drupal_add_js($jsWrapper, 'inline');

    and its not working.

    Also When i try to echo a session variable from this function it does not work either.

    $cw_userEmail= $account->mail; session_start(); $_SESSION['email'] = $cw_userEmail; echo $_SESSION['email'];

    am i calling it from the wrong place? These 2 different functions work when i add them directly to a template but not template.php

    submitted by /u/trashpanda666
    [link] [comments]

    4 days 2 hours ago

Is a dedicated blog section still useful in the age of Facebook and Twitter?

  • If you're developing a Drupal site for a small, cash-poor organization that currently posts on Facebook and Twitter, should you:

    1) Build an actual blog section in Drupal and…

    • 1a) …set up automated cross-posting to FB/Tw
    • 1b) …ask users to manually repost

    2) Add Facebook & Twitter widgets to the site, displaying latest external posts but not importing them into the DB

    3) Set up automated imports of FB/Tw posts into the site as "story" nodes

    With so many updates being posted to social media by small organizations, does a blog section even make sense for them anymore?

    submitted by /u/UTAN_dev
    [link] [comments]

    4 days 9 hours ago

myDropWizard.com: Drupal 6 security update for Views

  • As you may know, Drupal 6 has reached End-of-Life (EOL) which means the Drupal Security Team is no longer doing Security Advisories or working on security patches for Drupal 6 core or contrib modules - but the Drupal 6 LTS vendors are and we're one of them!

    Today, there is a Moderately Critical security release for the Views module to fix an Access Bypass vulnerability.

    The Views module enables you to create custom displays of Drupal data.

    When creating a View, you have the option to enable the use of AJAX. The Views module does not restrict access to the AJAX endpoint to only Views configured to use AJAX. This is mitigated by having access restrictions on the view.

    See the security advisory for Drupal 7 for more information.

    Here you can download the Drupal 6 patch for 6.x-2.x or 6.x-3.x.

    If you have a Drupal 6 site using the Views module, we recommend you update immediately.

    If you'd like all your Drupal 6 modules to receive security updates and have the fixes deployed the same day they're released, please check out our D6LTS plans.

    Note: if you use the myDropWizard module (totally free!), you'll be alerted to these and any future security updates, and will be able to use drush to install them (even though they won't necessarily have a release on Drupal.org).

    4 days 10 hours ago