api

Ctools hook

  1. /**
  2.  * Implementation of hook_ctools_plugin_api().
  3.  *
  4.  * If you do this, CTools will pick up default panels pages in
  5.  * <modulename>.pages_default.inc
  6.  */
  7. function ignition_ctools_plugin_api($mo

object_assoc

  1. /**
  2.  *
  3.  * @param $object
  4.  *              Core object to create options
  5.  * @param $key
  6.  *              Key of the object to take
  7.  * @param $value
  8.  *              Value to assign
  9.  * @return array
  10.  *              Options that could be use

Code

  1. function hook_views_data() {
  2.  
  3.   /* first attempt */
  4.  
  5.  
  6.  
  7.   $data = array();
  8.   $data['byline']['group']  = t('Byline');
  9.   $data['byline']['join']['node'] = array(

Views API problem

  1. <?php
  2. // $Id: $
  3.  
  4. /**
  5.  * @file
  6.  * Provide views data and handlers for markets.module
  7.  */
  8.  
  9. /**
  10.  * Implementation of hook_views_data()
  11.  */
  12. function markets_views_data() {

Update payment plugin system with ctools process callback

  1. /**
  2.  * Implementation of hook_payment_plugins().
  3.  */
  4. function payment_payment_gateway() {
  5.   return array(
  6.     'parent' => array(
  7.       'handler' => 'payment_plugin_gateway',

test

  1. /**
  2.  * Implementation of hook_payment_plugins().
  3.  */
  4. function payment_payment_gateway() {
  5.   return array(
  6.     'parent' => array(
  7.       'handler' => 'payment_plugin_gateway',
Syndicate content