You are here

function shrinktheweb_form_system_modules_alter in ShrinkTheWeb 8

Implements hook_form_alter().

File

./shrinktheweb.module, line 425

Code

function shrinktheweb_form_system_modules_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  $form['modules']['shrinktheweb']['shrinktheweb']['links']['donate'] = array(
    '#url' => Url::fromUri('https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZBNAT7HJACUAG&lc=US&item_name=ShrinkTheWeb&no_note=0&cn=Add%20special%20instructions%20to%20the%20seller%3a&no_shipping=1&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted'),
    '#options' => array(
      'attributes' => array(
        'class' => array(
          0 => 'module-link',
          1 => 'module-link-donate',
        ),
        'title' => t('Donate'),
        'target' => '_blank',
      ),
    ),
    '#title' => t('Donate'),
    '#type' => 'link',
  );
  $form['modules']['shrinktheweb']['#theme'] = 'shrinktheweb_modules_fieldset';
}