function nodeformcols_nodeformcols_content_type_admin_info in Node form columns 7
Callback to provide administrative info.
File
- plugins/
content_types/ nodeformcols.inc, line 68 - Renders the nodeformcols form in a panel pane. The entire panel is inside the <form> tag. Most of the code is from the CTools form.inc content type.
Code
function nodeformcols_nodeformcols_content_type_admin_info($subtype, $conf) {
$block = new stdClass();
$block->title = t('Affected forms');
$types = node_type_get_types();
$forms = array();
foreach ($types as $type => $description) {
if (variable_get('nodeformscols_field_placements_' . $type . '_default', FALSE)) {
$forms[] = $description->name;
}
}
if (!empty($forms)) {
$block->content = theme('item_list', array(
'items' => $forms,
));
}
else {
$block->content = '<p>' . t('No forms are using customized nodeformcols settings.') . '</p>';
}
return $block;
}