Hi Mohammed -<br><br>I think you misunderstand the hook system. It is designed so that you *don't* have to hack core files. You would implement this in your site's custom module space (if you don't have one, you can create one easily). You would then implement the hook as <i>your_module_name_</i>form_alter(&$form, $form_state, $form_id)<br>
<br>This is the way that Drupal is designed to be extended and is not at all a hack. You can read more here: <a href="http://api.drupal.org/api/group/hooks/6">http://api.drupal.org/api/group/hooks/6</a><br><br>Best,<br>William<br>
<strong><code></code></strong><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 9:07 AM, <a href="mailto:Mohammed@atexplorer.com">Mohammed@atexplorer.com</a> <span dir="ltr"><<a href="mailto:mohammed@atexplorer.com">mohammed@atexplorer.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
hello William,<br>
<br>
thanks for the answer. I don't prefer to use this method as I need to
hack core files. any other thoughts?<br>
<br>
thank you.<br><font color="#888888">
Mohammed.</font><div><div></div><div class="h5"><br>
<br>
On 6/22/2009 3:09 PM, William Smith wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
I don't recall if there is a direct way (ie. config option) to make the
path alias textfield mandatory, but if nothing else you could use
hook_form_alter (<a href="http://api.drupal.org/api/function/hook_form_alter/6" target="_blank">http://api.drupal.org/api/function/hook_form_alter/6</a>)
to make the field required.<br>
<br>
<div>On Mon, Jun 22, 2009 at 7:13 AM, <a href="mailto:Mohammed@atexplorer.com" target="_blank">Mohammed@atexplorer.com</a> <span><<a href="mailto:mohammed@atexplorer.com" target="_blank">mohammed@atexplorer.com</a>></span>
wrote:<br>
<blockquote>hello.<br>
<br>
is this at all possible? I want users to fill in the path alias field
and make it obligatory. it sounds simple, but searching <a href="http://drupal.org" target="_blank">drupal.org</a> didn't
yield anything relevant.<br>
<br>
-- <br>
All The Best,<br>
Mohammed Al-shar'<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote>
</div>
<br>
</div></div><pre><hr size="4" width="90%"><div class="im">
--
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</div></pre>
</blockquote><div class="im">
<br>
<br>
<pre cols="72">--
All The Best,
Mohammed Al-shar'</pre>
</div></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>