Welcome to Drupaler.co.uk

This is a UK-based collaborative blog for Drupal developers around the world. There is also an associated Drupal news feed available on this page.

Recent comments

  • tayzlor (not verified)
    1 day 11 hours ago

    Mike, you are right, the Ctools API has changed how to do this.
    In the latest versions of Ctools and Panels you now need to do the following -

    in your .module file -

    /**
    * Implementation of hook_ctools_plugin_api().
    */
    function mymodule_ctools_plugin_api($module, $api) {
      if ($module == 'page_manager' && $api == 'pages_default') {
        $module_path = drupal_get_path('module', 'mymodule');
        return array('version' => 1, 'path' => $module_path);
      }
    }

    In your module folder now create mymodule.pages_default.inc file and inside that put the following -

    /**
    * Implementation of hook_default_page_manager_handlers()
    */
    function mymodule_default_page_manager_handlers() { 
      $handlers = array();

      //handler export code here.

      $handlers[$handler->name] = $handler;
      return $handlers;
    }

    /**
    * Implementation of hook_default_page_manager_pages()
    */
    function mymodule_default_page_manager_handlers() { 
      $pages = array();

      //page export code here.

      $pages[$page->name] = $page;
      return $pages;
    }

    Depending on the type of Panel you are exporting you may only need 1 of the above hooks, which will contain the whole export.

  • 1 day 11 hours ago

    This is/was a Panels 3 tutorial, but the CTools API seems to have changed since it was written. We're going to update it.

  • Anonymous (not verified)
    1 day 17 hours ago

    I am so happy that I found this post.

    It has been very helpful.. actually I was trying from days together to figure out page not found error..

    Thank you

  • Mahitha (not verified)
    3 days 3 hours ago

    I have recorded the script and modified to extract the form_build_id. Even then the Login fails. Could not figure out how to make login work.
    Can you provide a sample script with login step would be of great help.

    Thanking in advance.

  • hookah (not verified)
    5 days 17 hours ago

    I prefer just the normal homepage. Why get a handbook page when you can use the right column plug?

Syndicate content