function freelinking_page in Freelinking 5
Same name and namespace in other branches
- 6 freelinking.module \freelinking_page()
- 6.2 freelinking.module \freelinking_page()
1 string reference to 'freelinking_page'
File
- ./
freelinking.module, line 37
Code
function freelinking_page($thetitle = NULL) {
if ($_POST['operation'] == 'delete' && $_POST['links']) {
return drupal_get_form('freelinking_multiple_delete_confirm', $_POST['links']);
}
elseif ($_POST['operation'] == 'delete-all') {
return drupal_get_form('freelinking_delete_all_confirm');
}
if ($thetitle) {
// find the matching title
$freelink = _freelinking_make_link($thetitle);
drupal_goto($freelink['path'], $freelink['args'] ? $freelink['args'] : '');
}
else {
// no title was passed -- show a list of wikiwords and status
return drupal_get_form('freelinking_page_form', user_access('administer freelinking'));
}
// big else
}