function workspace_configure_form in Workspace 5
Same name and namespace in other branches
- 6 workspace.module \workspace_configure_form()
- 7 workspace.module \workspace_configure_form()
The configuration page.
1 string reference to 'workspace_configure_form'
File
- ./workspace.module, line 97 
- Presents a user-centric view of content.
Code
function workspace_configure_form() {
  global $user;
  $form = array();
  $form['maxnodes'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of items'),
    '#description' => t('Maximum number of items to display in your workspace.'),
    '#default_value' => $user->workspaces ? $user->workspaces['default']['maxnodes'] : 50,
    '#size' => 4,
  );
  $form['maxfilenames'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of files'),
    '#description' => t('Maximum number of filenames to display in your workspace.'),
    '#default_value' => $user->workspaces ? $user->workspaces['default']['maxfilenames'] : 50,
    '#size' => 4,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  return $form;
}