| 1 |
<?php
|
| 2 |
// $Id: zend.admin.inc,v 1.1.2.1.2.5 2008/06/01 17:15:56 mustafau Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Administration pages for the Zend Framework.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Administration settings for the Zend Framework.
|
| 11 |
*/
|
| 12 |
function zend_admin() {
|
| 13 |
$zend_ready = zend_ready(FALSE);
|
| 14 |
$zend_status = $zend_ready ? 'ok' : 'error';
|
| 15 |
$zend_version = $zend_ready ? $zend_ready : t('Not found');
|
| 16 |
$form['zend_path'] = array(
|
| 17 |
'#type' => 'textfield',
|
| 18 |
'#title' => t('Installation Path'),
|
| 19 |
'#description' => t('The location where the Zend Framework is installed. This should be the subdirectory from where it is installed. If you put the Zend Framework into %moduledir/Zend, then here you would put in %moduledir. Status: <span class="@zendstatus">%zendversion</span>.', array('%moduledir' => drupal_get_path('module', 'zend'), '@zendstatus' => $zend_status, '%zendversion' => $zend_version)),
|
| 20 |
'#default_value' => zend_get_path(),
|
| 21 |
'#attributes' => array('class' => $zend_status),
|
| 22 |
);
|
| 23 |
return system_settings_form($form);
|
| 24 |
}
|