function front_page in Front Page 6.2
Same name and namespace in other branches
- 5 front_page.module \front_page()
- 6 front_page.module \front_page()
- 7.2 front_page.module \front_page()
- 7 front_page.module \front_page()
Function to handle the display of the front page themed and full types.
6 string references to 'front_page'
- front_page_init in ./
front_page.module - Implementation of hook_init().
- front_page_install in ./
front_page.install - Implements hook_install().
- front_page_menu in ./
front_page.module - Implementation of hook_menu().
- front_page_uninstall in ./
front_page.install - Implements hook_uninstall().
- front_page_update_6200 in ./
front_page.install - Update 6200 - Add table if not already added, transfer data into the table and correct special notice times.
File
- ./
front_page.module, line 142
Code
function front_page() {
// $_front_page variable should already have been loaded in front_page_init() function.
global $_front_page;
if ($_front_page) {
switch ($_front_page['mode']) {
case 'themed':
return check_markup($_front_page['data'], $_front_page['filter_format']);
case 'full':
print check_markup($_front_page['data'], $_front_page['filter_format']);
exit;
}
}
// set page not found as there was no themed or full option set for the front page.
drupal_not_found();
exit;
}