public function CaseTrackerProjectUIController::addPage in Case Tracker 7.2
Create the markup for the add CaseTrackerProject Entities page within the class so it can easily be extended/overriden.
File
- includes/
controller/ ui/ CaseTrackerProjectUIController.inc, line 91
Class
- CaseTrackerProjectUIController
- UI controller.
Code
public function addPage() {
$item = menu_get_item();
$content = system_admin_menu_block($item);
if (count($content) == 0) {
drupal_set_message(t('There isn\'t any Project Type configured. To setup now, go to the <a href="@link">@link_text</a>.', array(
'@link' => base_path() . 'admin/structure/casetracker/project-types',
'@link_text' => 'administrative page',
)), 'error');
}
if (count($content) == 1) {
$item = array_shift($content);
drupal_goto($item['href']);
}
return theme('casetracker_project_add_list', array(
'content' => $content,
));
}