You are here

function heartbeat_activity_stream_clone in Heartbeat 6.4

Callback function to clone a stream.

1 string reference to 'heartbeat_activity_stream_clone'
heartbeat_menu in ./heartbeat.module
Implementation of hook_menu().

File

./heartbeat.admin.inc, line 484
Admnistration tasks for heartbeat.

Code

function heartbeat_activity_stream_clone(&$form_state, $access_type) {

  // Permissions, allow/deny message templates
  $realname = isset($access_type['realname']) ? $access_type['realname'] : $access_type['class'];
  $form['stream_name'] = array(
    '#type' => 'textfield',
    '#title' => t('New stream name'),
    '#default_value' => '',
    '#description' => t('Choose a name for the stream, with origin <strong>@type</strong>', array(
      '@type' => $realname,
    )),
  );
  $form['stream_base'] = array(
    '#type' => 'hidden',
    '#default_value' => $realname,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Clone stream'),
  );
  return $form;
}