function panels_admin_content_types_custom_php in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/custom_php.inc \panels_admin_content_types_custom_php()
Return all content types available.
1 string reference to 'panels_admin_content_types_custom_php'
- panels_custom_php_panels_content_types in content_types/
custom_php.inc - Callback function to supply a list of content types.
File
- content_types/
custom_php.inc, line 73
Code
function panels_admin_content_types_custom_php() {
if (filter_access(2)) {
return array(
'custom_php' => array(
'title' => t('Custom PHP content'),
'icon' => 'icon_block_custom.png',
'path' => panels_get_path('content_types/custom'),
'description' => t('Custom PHP block with access to Panels context data. Use sparingly, and with caution!'),
'category' => array(
t('Custom'),
-10,
),
),
);
}
}