function fb_actions_minifeed_form in Drupal for Facebook 5
File
- ./
fb_actions.module, line 107 - Actions defined here interact with Facebook's API. This makes it possible to notify facebook of various activities as they happen.
Code
function fb_actions_minifeed_form($values) {
$options = fb_get_app_options(TRUE);
$form['description'] = array(
'#value' => t('Note that this action will only succeed when executed from a Facebook canvas page when the user is logged in, or on non-canvas pages when the logged in user has an infinite session key. These are privacy restrictions enforced by the Facebook API.'),
);
$form['fb_app_nid'] = array(
'#type' => 'select',
'#title' => t('Application'),
'#default_value' => $values['fb_app_nid'],
'#options' => $options,
'#description' => t('Log into Facebook as which action? If %current, action will only be performed only on canvas pages.', array(
'%current' => $options[FB_APP_CURRENT],
)),
);
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#default_value' => $values['title'],
'#description' => t('Title line of mini-feed item. (Most Facebook mini-feed items have only a title, and no message body).'),
'#required' => TRUE,
);
$form['body'] = array(
'#type' => 'textarea',
'#title' => t('Body'),
'#default_value' => $values['body'],
'#description' => t('Text to publish on mini-feed. In many cases, only the title is required and this may be left blank.<br />The following tokens will be replaced: !token_help', array(
'!token_help' => theme('token_help', 'node') . theme('token_help', 'comment') . theme('token_help', 'fb_app'),
)),
);
return $form;
}