'requested', MUAMBA_ACCEPTED => 'accepted', MUAMBA_REJECTED => 'rejected', MUAMBA_RELEASED => 'released', MUAMBA_RETURNED => 'returned', ); if ($code == NULL) { return $status; } return $status[$code]; } /** * Get status callback name. * * @param $code * Optional status code. * * @return * Array of callback names or callback * name if $code is supplied. */ function muamba_actions($code = NULL) { $status = array( MUAMBA_REQUESTED => 'request', MUAMBA_ACCEPTED => 'accept', MUAMBA_REJECTED => 'reject', MUAMBA_RELEASED => 'releas', MUAMBA_RETURNED => 'return', ); if ($code == NULL) { return $status; } return $status[$code]; }