X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fexample.profile;fp=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fexample.profile;h=0000000000000000000000000000000000000000;hp=dd0d2fab8d50f998267d0056c54e7670695c7b17;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/resources/example.profile b/vendor/drush/drush/tests/resources/example.profile deleted file mode 100644 index dd0d2fab8..000000000 --- a/vendor/drush/drush/tests/resources/example.profile +++ /dev/null @@ -1,42 +0,0 @@ - 'Example', - 'description' => 'Example profile with a couple of basic added configuration options.', - ); -} - -function example_profile_modules() { - return array(); -} - -function example_form_alter(&$form, $form_state, $form_id) { - if ($form_id == 'install_configure') { - $form['my_options'] = array( - '#type' => 'fieldset', - '#title' => t('Example options'), - ); - $form['my_options']['myopt1'] = array( - '#type' => 'textfield', - '#title' => 'Example option 1' - ); - $form['my_options']['myopt2'] = array( - '#type' => 'select', - '#title' => t('Example option 2'), - '#options' => array( - 0 => t('Something'), - 1 => t('Something else'), - 2 => t('Something completely different'), - ), - ); - - // Make sure we don't clobber the original auto-detected submit func - $form['#submit'] = array('install_configure_form_submit', 'example_install_configure_form_submit'); - } -} - -function example_install_configure_form_submit($form, &$form_state) { - variable_set('myopt1', $form_state['values']['myopt1']); - variable_set('myopt2', $form_state['values']['myopt2']); -} \ No newline at end of file