function actions_add(){ $form = array(); $form['name'] = array( '#title' => t('action name'), '#type' => 'textfield', '#description' => t('the name of this action') ); $form['type'] = array( '#title' => t('action type'), '#type' => 'select', '#options' => _get_action_types(), '#description' => t('Select The Type Of this action'), ); $form['param'] = array( '#title' => t('action param'), '#type' => 'textarea', '#description' => t('the params of this action'), ); $form['devmid'] = array( '#title' => t('action development Measure'), '#type' => 'select', '#options' => _get_action_devms(), '#description' => t('Define the Development Measure to Add this action to .. ') ); $form['startdate'] = array( '#title' => t('action startdate'), '#type' => 'date', '#description' => t('Define the start DATETIME'), '#default_value' => array( 'month' => format_date(time(), 'custom', 'n'), 'day' => 1, 'year' => format_date(time(), 'custom', 'Y') ) ); return $form; }