You are here

function vkxp_post_tab_form in VK CrossPoster 7.2

Render callback for tab_post form.

1 string reference to 'vkxp_post_tab_form'
vkxp_menu in ./vkxp.module
Implements hook_menu().

File

./vkxp.forms.inc, line 244
vkxp.forms.inc Contains node form alters.

Code

function vkxp_post_tab_form(array $form, array $form_state) {
  if (arg(0) == 'node' && is_numeric(arg(1))) {
    $nid = arg(1);
  }
  else {
    $nid = 0;
  }
  $form['nid'] = array(
    '#type' => 'hidden',
    '#value' => $nid,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Post node to Vkontakte'),
  );
  return $form;
}