You are here

function workspace_list_form in Workspace 7

1 string reference to 'workspace_list_form'
workspace_list_content in ./workspace.module
Menu callback. Display list of content.

File

./workspace.module, line 698
Presents a user-centric view of content.

Code

function workspace_list_form($form, &$form_state, $account_id, $filter) {
  $options = workspace_get_types();
  if (!$options) {
    return array();
  }
  $form['content_type'] = array(
    '#title' => t('Show Type'),
    '#type' => 'select',
    '#options' => $options,
    '#default_value' => $filter ? $filter : '',
    '#prefix' => '<div class="container-inline">',
  );
  $form['account_id'] = array(
    '#type' => 'value',
    '#value' => $account_id,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Go'),
  );
  $form['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset'),
    '#submit' => array(
      'workspace_list_form_reset',
    ),
    '#suffix' => '</div>',
  );
  return $form;
}