DrupalBin
Submit Code
About
Recent Posts
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
41 min 55 sec
ago
Code
1 hour 37 min
ago
Code
5 hours 35 min
ago
oopsie in modules/taxonomy/taxonomy.test
7 hours 34 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for Updates to panels content type definition arrays
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
// demoing by sticking all the available values onto node_content $items['content_type'] = array( 'title' => t('Node content'), 'weight' => -10, 'single' => TRUE, // only provides a single content type 'content_types' => 'panels_admin_content_types_node_content', 'render callback' => 'panels_content_node_content', 'add callback' => 'panels_admin_edit_node_content', 'edit callback' => 'panels_admin_edit_node_content', 'title callback' => 'panels_admin_title_node_content', // all the new ones follow 'visibility control' => 'panels_admin_visibility_control_node_content', 'visibility submit' => 'panels_admin_visibility_submit_node_content', 'visibility render' => 'panels_content_visibility_node_content', 'visibility serialize' => TRUE, 'ignore roles' => FALSE, 'roles and visibility' => TRUE, 'form control' => 'panels_admin_form_control_node_content', );
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.