You are here

function socialmedia_admin_setup in Social media 7

1 string reference to 'socialmedia_admin_setup'
socialmedia_menu in ./socialmedia.module
Implements hook_menu().

File

./socialmedia.setup.inc, line 12
Setup wizard

Code

function socialmedia_admin_setup($step = 0) {
  if (!module_exists('block')) {
    drupal_set_message(t('The Block module must be enabled before using this wizard.', 'error'));
    return '';
  }
  if (!$step) {
    $step = 0;
  }
  $form = drupal_get_form('socialmedia_setup_' . $step . '_form');
  $output = render($form);
  return $output;
}