You are here

function smiley_import_form in Smiley 7

Smileys import form.

1 string reference to 'smiley_import_form'
smiley_menu in ./smiley.module
Implements hook_menu().

File

./smiley.admin.inc, line 234
Smileys administrative pages.

Code

function smiley_import_form($form, &$form_state) {
  $form['help'] = array(
    '#prefix' => '<p>',
    '#markup' => t('Before import new smiley, download smiley packs (!kolobok, !phpBB or other) and extract them in smiley folder (<strong>@folder</strong>).', array(
      '!kolobok' => l(t('kolobok'), 'http://www.en.kolobok.us/download.php?list.8', array(
        'attributes' => array(
          'title ' => 'Author\'s smiley Kolobok Style',
        ),
      )),
      '!phpBB' => l(t('phpBB'), 'http://www.phpbb.com/customise/db/styles/smilies-13/', array(
        'attributes' => array(
          'title ' => 'Smyles for phpBB',
        ),
      )),
      '@folder' => variable_get('smiley_path', drupal_get_path('module', 'smiley') . '/packs'),
    )),
    '#suffix' => '</p>',
  );
  $form['status'] = array(
    '#title' => t('Enable all new smiley'),
    '#type' => 'checkbox',
    '#default_value' => 0,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Start import'),
  );
  return $form;
}