| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: features.block.inc,v 1.1.2.3 2009/05/31 02:44:04 yhahn Exp $ 3 4 /** 5 * Implementation of hook_features_api(). 6 */ 7 function block_features_api() { 8 return array(); 9 } 10 11 /** 12 * Implementation of hook_features_export(). 13 */ 14 function block_features_export($data, &$export) { 15 $pipe = array(); 16 foreach ($data as $bid) { 17 $split = explode('-', $bid); 18 $module = array_shift($split); 19 $delta = implode('-', $split); 20 21 $export['dependencies'][$module] = $module; 22 23 switch ($module) { 24 case 'views': 25 if (strlen($delta) == 32) { 26 $hashes = variable_get('views_block_hashes', array()); 27 if (!empty($hashes[$delta])) { 28 $delta = $hashes[$delta]; 29 } 30 } 31 32 $delta_split = explode('-', $delta); 33 $view_name = $delta_split[0]; 34 if (!empty($view_name)) { 35 $pipe['views'][] = $view_name; 36 } 37 break; 38 } 39 } 40 return $pipe; 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |