You are here

function hosting_platform_form_platform_after_build in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 platform/hosting_platform.module \hosting_platform_form_platform_after_build()
  2. 7.3 platform/hosting_platform.module \hosting_platform_form_platform_after_build()
1 string reference to 'hosting_platform_form_platform_after_build'
hosting_platform_form in platform/hosting_platform.module
Implementation of hook_form().

File

platform/hosting_platform.module, line 346
Platform node type definition.

Code

function hosting_platform_form_platform_after_build($form) {
  drupal_add_js(drupal_get_path('module', 'hosting_platform') . '/hosting_platform.js');
  if (isset($form['makefile']['#attributes']['class'])) {
    $form['makefile']['#attributes']['class'] .= ' hosting-platform-working-copy-source';
  }
  else {
    $form['makefile']['#attributes']['class'] = ' hosting-platform-working-copy-source';
  }
  if (isset($form['make_working_copy']['#attributes']['class'])) {
    $form['make_working_copy']['#attributes']['class'] .= ' hosting-platform-working-copy-target';
  }
  else {
    $form['make_working_copy']['#attributes']['class'] = ' hosting-platform-working-copy-target';
  }
  return $form;
}