me_node_creation.placeholder.inc in Menu Editor 7
File
me_node_creation/me_node_creation.placeholder.inc
View source
<?php
function menu_editor_placeholder_page($item) {
drupal_set_title(t('!link_title - Under Construction', array(
'!link_title' => $item['link_title'],
)));
$html = '';
foreach (node_type_get_types() as $type_name => $type_info) {
if (me_node_creation_create_node_access($type_info)) {
$link_html = l($type_info->name, "node/add/{$type_name}/mlid/{$item['mlid']}");
$html .= "<li>{$link_html}</li>";
}
}
$txt = t('We are working on it.');
if ($html) {
$txt_admin = t("Replace this placeholder link with real content:");
return <<<EOT
<p>{<span class="php-variable">$txt</span>}</p>
<p>{<span class="php-variable">$txt_admin</span>}</p>
<ul>{<span class="php-variable">$html</span>}</ul>
EOT;
}
else {
return <<<EOT
<p>{<span class="php-variable">$txt</span>}</p>
EOT;
}
}