Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By peterk900 on
This code..
<?php
global $user;
if (user_access('create prices content', $user)) {
$output = l(t('Create New Price'), 'node/add/prices');
print $output;
}
.. placed in the header section of a View displays a link which goes to the content type node creation form. How do I change it to go to
a page with a custom form to add a new prices node - the path to the form is examples/prices ?
Comments
Sorry - not thinking !
Sorry - not thinking !
Problem is solved by replacing node/add/prices with the form path examples/prices