• 05/01/2014
    Прикрепить существующий файл CSS или Javascript: $form['#attached']['css'] = array( drupal_get_path('module', 'my_module') . '/example.css', ); $form['#attached']['js'] = array( drupal_get_path('module', 'my_module') . '/example.js', );Добавить что-то в Drupal.settings: $settings = array('my_module_text' => 'Example Text is Here!'); $form['#attached']['js'][] = array( 'data' => array('my_module' => $settings), 'type' => '...
    85