function panels_admin_content_types_node_form in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/node_form.inc \panels_admin_content_types_node_form()
Return all content types available.
1 call to panels_admin_content_types_node_form()
- panels_admin_title_node_form in content_types/
node_form.inc
1 string reference to 'panels_admin_content_types_node_form'
- panels_node_form_panels_content_types in content_types/
node_form.inc - Callback function to supply a list of content types.
File
- content_types/
node_form.inc, line 22
Code
function panels_admin_content_types_node_form() {
$content = array(
'publishing' => array(
'title' => t('Node form publishing options'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Publishing options on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
),
'author' => array(
'title' => t('Node form author information'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Author information on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
),
'input_format' => array(
'title' => t('Node form input format'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Input format for the body field on a node.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
),
'log' => array(
'title' => t('Node form log message'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Log message for the node.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
),
);
if (module_exists('comment')) {
$content['comment'] = array(
'title' => t('Node form comment settings'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Comment settings on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
if (module_exists('menu')) {
$content['menu'] = array(
'title' => t('Node form menu settings'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('menu settings on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
if (module_exists('path')) {
$content['url_path'] = array(
'title' => t('URL Path settings'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Publishing options on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
if (module_exists('upload')) {
$content['attachments'] = array(
'title' => t('Node form file attachments'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('File attachments on the Node form.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
if (module_exists('taxonomy')) {
$content['taxonomy'] = array(
'title' => t('Node form categories'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Taxonomy categories for the node.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
if (module_exists('book')) {
$content['book'] = array(
'title' => t('Node form book options'),
'icon' => 'icon_node.png',
'path' => panels_get_path('content_types/node'),
'description' => t('Book options for the node.'),
'required context' => new panels_required_context(t('Form'), 'node_form'),
'category' => array(
t('Form'),
-9,
),
);
}
return $content;
}