Beispiel #1
0
/**
 * Invoke function that redirects to respective functions
 */
function invoke()
{
    if (!isset($_GET['return'])) {
        return;
    }
    // intialize the system
    require_once '../civicrm.config.php';
    require_once 'CRM/Core/Config.php';
    $config =& CRM_Core_Config::singleton();
    switch ($_GET['return']) {
        case 'states':
            return states($config);
        case 'countries':
            return countries($config);
        default:
            return;
    }
}
Beispiel #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $data = ['states' => states(), 'genres' => $this->genre->dropdown(), 'formats' => $this->format->dropdown()];
     return view('templates.station-form', $data);
 }