home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (panels_ipe.pipelines.inc)

This example Drupal source code file (panels_ipe.pipelines.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

and, array, function, logged-in-user, panels_ipe_default_panels_renderer_pipeline, perm, php, pipeline, pipelines, renderers, this, to, true, users

The panels_ipe.pipelines.inc Drupal example source code

<?php
// $Id: panels_ipe.pipelines.inc,v 1.1.2.1 2010/07/06 23:59:00 merlinofchaos Exp $

/**
 * @file
 * Bulk export of panels_layouts objects generated by Bulk export module.
 */

/**
 * Implementation of hook_default_panels_layout()
 */
function panels_ipe_default_panels_renderer_pipeline() {
  $pipelines = array();

  $pipeline = new stdClass;
  $pipeline->disabled = FALSE; /* Edit this to true to make a default pipeline disabled initially */
  $pipeline->api_version = 1;
  $pipeline->name = 'ipe';
  $pipeline->admin_title = t('In-Place Editor');
  $pipeline->admin_description = t('Allows privileged users to update and rearrange the content while viewing this panel.');
  $pipeline->weight = 0;
  $pipeline->settings = array(
    'renderers' => array(
      0 => array(
        'access' => array(
          'plugins' => array(
            0 => array(
              'name' => 'perm',
              'settings' => array(
                'perm' => 'use panels in place editing',
              ),
              'context' => 'logged-in-user',
            ),
          ),
          'logic' => 'and',
        ),
        'renderer' => 'ipe',
        'options' => array(),
      ),
    ),
  );
  $pipelines[$pipeline->name] = $pipeline;

  return $pipelines;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal panels_ipe.pipelines.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.