Skip to content
; $Id$
name = User Service
description = Provides a user service.
package = Services - services
......
<?php
// $Id$
/**
* @file
* Link general views functionalities to services module.
......
; $Id$
name = Views Service
description = Provides a views service.
package = Services - services
......
<?php
// $Id$
/**
* @file
* Link general views functionalities to services module.
......
<?php
// $Id$
/**
* @file
* Browser thru all services and servers.
......@@ -84,7 +83,7 @@ function services_admin_browse_method($method) {
foreach ($method['args'] as $arg) {
$count++;
$output .= '<dt><em class="type">'. $arg['type'] .'</em><strong class="name">'.
' '. $arg['name'] .'</strong> ('. (($arg['optional']) ? t('optional') : t('required')) .')</dt>';
' '. $arg['name'] .'</strong> ('. (isset($arg['optional']) && ($arg['optional']) ? t('optional') : t('required')) .')</dt>';
$output .= '<dd>'. $arg['description'] .'</dd>';
}
......@@ -125,7 +124,7 @@ function services_admin_browse_test() {
'#value' => $arg['name']
);
$form['optional'][$key] = array(
'#value' => ($arg['optional']) ? t('optional') : t('required')
'#value' => (isset($arg['optional']) && $arg['optional']) ? t('optional') : t('required')
);
if (isset($arg['size']) && $arg['size'] == 'big') {
......