<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
hello William and Fred,<br>
<br>
thank you very much for the explanation! if only I can write code I
will use this power of drupal extensively. any more hints or a skeleton
module that I can try? unfortunately I won't be able to write this on
my own, even though the code is only few lines long.<br>
<br>
thank you both very much, and I am sorry for the miss understanding.<br>
<br>
Mohammed.<br>
<br>
On 6/22/2009 4:19 PM, William Smith wrote:
<blockquote
 cite="mid:74630ca20906220619n675b7d53sa470cf4f9c4cd18a@mail.gmail.com"
 type="cite">
  <meta http-equiv="Context-Type"
 content="text/html; charset=ISO-8859-1">
Hi Mohammed -<br>
  <br>
I think you misunderstand the hook system.&nbsp; It is designed so that you
*don't* have to hack core files.&nbsp; You would implement this in your
site's custom module space (if you don't have one, you can create one
easily).&nbsp; You would then implement the hook as <i>your_module_name_</i>form_alter(&amp;$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.&nbsp; You can read more here: <a moz-do-not-send="true"
 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>On Mon, Jun 22, 2009 at 9:07 AM, <a moz-do-not-send="true"
 href="mailto:Mohammed@atexplorer.com">Mohammed@atexplorer.com</a> <span>&lt;<a
 moz-do-not-send="true" href="mailto:mohammed@atexplorer.com">mohammed@atexplorer.com</a>&gt;</span>
wrote:<br>
  <blockquote>
    <div>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>
Mohammed.
    <div>
    <div><br>
    <br>
On 6/22/2009 3:09 PM, William Smith wrote:
    </div>
    </div>
    <blockquote type="cite">
      <div>
      <div> 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 moz-do-not-send="true"
 href="http://api.drupal.org/api/function/hook_form_alter/6">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 moz-do-not-send="true"
 href="mailto:Mohammed@atexplorer.com">Mohammed@atexplorer.com</a> <span>&lt;<a
 moz-do-not-send="true" href="mailto:mohammed@atexplorer.com">mohammed@atexplorer.com</a>&gt;</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
 moz-do-not-send="true" href="http://drupal.org">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 moz-do-not-send="true"
 href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
      <pre> <div>
--
[ Drupal support list | <a moz-do-not-send="true"
 href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</div></pre>
    </blockquote>
    <div><br>
    <br>
    <pre>-- 
All The Best,
Mohammed Al-shar'</pre>
    </div>
    </div>
    <br>
--<br>
[ Drupal support list | <a moz-do-not-send="true"
 href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr width="90%" size="4">
--
[ Drupal support list | <a class="moz-txt-link-freetext" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
All The Best,
Mohammed Al-shar'</pre>
</body>
</html>