You are here

function tinybrowser_profile_operations in TinyBrowser 7

Add/Edit/Delete profile

1 string reference to 'tinybrowser_profile_operations'
tinybrowser_menu in ./tinybrowser.module
Implements hook_menu

File

./tinybrowser.module, line 777

Code

function tinybrowser_profile_operations($op = 'add', $pid = 0) {
  if ($op == 'delete') {
    drupal_set_title(t('Delete profile'));
    return drupal_get_form('tinybrowser_profile_delete_form', $pid);
  }
  if ($pid != 1 || $GLOBALS['user']->uid == 1) {
    return drupal_get_form('tinybrowser_profile_form', $pid);
  }
  drupal_access_denied();
}