get_value($values); $element = array(); $element['#theme'] = 'links'; $element['#attributes'] = array('class' => array('inline')); $uri = $job->uri(); if ($job->isSubmittable() && entity_access('submit', 'tmgmt_job', $job)) { $element['#links']['submit'] = array( 'href' => $uri['path'], 'query' => array('destination' => current_path()), 'title' => t('submit'), ); } else { $element['#links']['manage'] = array( 'href' => $uri['path'], 'title' => t('manage'), ); } if ($job->isAbortable() && entity_access('submit', 'tmgmt_job', $job)) { $element['#links']['cancel'] = array( 'href' => 'admin/tmgmt/jobs/' . $job->tjid . '/abort', 'query' => array('destination' => current_path()), 'title' => t('abort'), ); } if ($job->isDeletable() && user_access('administer tmgmt')) { $element['#links']['delete'] = array( 'href' => 'admin/tmgmt/jobs/' . $job->tjid . '/delete', 'query' => array('destination' => current_path()), 'title' => t('delete'), ); } return drupal_render($element); } }